Commit 3cca7ef3 authored by robertmh's avatar robertmh

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.
parent 347396d8
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
......
......@@ -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`"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment