update-grub handles vg names with dashes incorrectly

Bug #726021 reported by Ilkka Laukkanen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.