[Bug 695290] Re: 10_lupin case problem with ntfs UUIDs
Launchpad Bug Tracker
695290 at bugs.launchpad.net
Fri Jun 17 05:32:52 UTC 2011
This bug was fixed in the package grub2 - 1.98-1ubuntu12
---------------
grub2 (1.98-1ubuntu12) lucid-proposed; urgency=low
* Fix use of freed memory when replacing existing loopback device
(LP: #742967).
* Make sure to reinstall GRUB on upgrade if Wubi is in use (LP: #742967).
* Enable grub-fstest, so that we can use it to help find wubildr
(LP: #610898).
* Make NTFS UUIDs uppercase (LP: #695290).
grub2 (1.98-1ubuntu11) lucid-proposed; urgency=low
* Backport multipath probing fixes (LP: #687501).
-- Colin Watson <cjwatson at ubuntu.com> Wed, 27 Apr 2011 10:39:15 +0100
** Changed in: grub2 (Ubuntu Lucid)
Status: Fix Committed => Fix Released
** Changed in: grub2 (Ubuntu Maverick)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/695290
Title:
10_lupin case problem with ntfs UUIDs
Status in “grub2” package in Ubuntu:
Fix Released
Status in “grub2” source package in Lucid:
Fix Released
Status in “grub2” source package in Maverick:
Fix Released
Bug description:
1) Ubuntu 10.10
2) lupin-support 0.32
Normally, when running update-grub, 10_lupin should add entries to
grub.cfg with the root=UUID=x parameter.
On my system, this fails and the script falls back to using device
nodes (/dev/sda?) - which prevented the system from booting correctly,
because the device order gets mixed on every boot (sometimes it's sda,
sometimes sdb).
I found out the problem is on line 53 in /etc/grub.d/10_lupin:
host_device_uuid="`${grub_probe} --device "${host_device}" --target=fs_uuid 2> /dev/null`" || true
this returns the UUID in lower case, and on the next line this gets compared to /dev/disk/by-uuid/*:
test -e "/dev/disk/by-uuid/${host_device_uuid}"
But the device node in /dev/disk/by-uuid is in uppercase.
Workaround is to change line 53 to:
host_device_uuid="`${grub_probe} --device "${host_device}" --target=fs_uuid 2> /dev/null | tr '[:lower:]' '[:upper:]'`" || true
But I guess this is not correct (the conversion to uppercase should
only happen on NTFS hosts) - so a more proper fix would be necessary.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/695290/+subscriptions
More information about the foundations-bugs
mailing list