Bug#486119: Proposed fix to update-grub_lib to stop unwanted 'search --fs-uuid'
Jim Bray
jimsantelmo at gmail.com
Mon Jun 23 20:16:40 UTC 2008
I have just installed grub-pc version 1.96+20080621-1.
My /etc/default/grub contains:
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter
to Linux
GRUB_DISABLE_LINUX_UUID=true
'search --fs-uuid' lines should not be generated by update-grub, as I
have the "GRUB_DISABLE_LINUX_UUID" option set.
I propose the following change to update-grub_lib:
# If there's a filesystem UUID that GRUB is capable of identifiing,
use it;
# otherwise set root as per value in device.map.
echo "set root=`${grub_probe} --device ${device} --target=drive`"
s/
if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid
2/dev/null`" ; then
/
if [ "x${GRUB_DISABLE_LINUX_UUID}" != "xtrue" ] &&
fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2/dev/null`"
; then
/
echo "search --fs-uuid --set ${fs_uuid}"
fi
}
More information about the Pkg-grub-devel
mailing list