update-grub handles vg names with dashes incorrectly

Bug #726021 reported by Ilkka Laukkanen on 2011-02-27
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: grub2

When update-grub is probing for bootable partitions from logical volumes, it creates incorrect menu entries if the volume group names have dashes in them. Apparently the parameter format for the "set root='(vg-lv)'" should be exactly the same as the device node name in /dev/mapper, or /dev/mapper/vg-lv in the above case. However, for a volume group called "vg-0" having a logical volume "root", the dash gets sorta-escaped so that the mapper node path is /dev/mapper/vg--0-root; update-grub still puts '(vg-0-root)' as the root parameter however. This causes the menu entries to become unbootable, and if the grub configuration itself resides on such an lvm volume, the whole system becomes unbootable.

Tags: lvm Edit Tag help
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers