2008-06-16 Robert Millan <rmh@aybabtu.com>

* util/update-grub_lib.in (prepare_grub_to_access_device): If we were
        asked to setup access for the same partition that provides /boot,
        don't bother using UUIDs since our root already has the value we
        want.
This commit is contained in:
robertmh 2008-06-16 22:08:03 +00:00
parent 347396d87f
commit 3cca7ef3b6
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2008-06-16 Robert Millan <rmh@aybabtu.com>
* util/update-grub_lib.in (prepare_grub_to_access_device): If we were
asked to setup access for the same partition that provides /boot,
don't bother using UUIDs since our root already has the value we
want.
2008-06-16 Robert Millan <rmh@aybabtu.com>
* util/biosdisk.c (convert_system_partition_to_system_disk): Detect

View File

@ -114,6 +114,12 @@ prepare_grub_to_access_device ()
{
device=$1
# If our target is the same partition that provides /boot, our $root
# is already set to what we want, so no need to bother with UUIDs.
if [ "x${device}" = "x${GRUB_DEVICE_BOOT}" ] ; then
return
fi
# 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`"