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

* util/update-grub_lib.in (prepare_grub_to_access_device): Generate
        code that is backward compatible with pre-uuid search command.
This commit is contained in:
robertmh 2008-06-01 10:42:48 +00:00
parent c682dfd71d
commit 1385c5bb3d
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-06-01 Robert Millan <rmh@aybabtu.com>
* util/update-grub_lib.in (prepare_grub_to_access_device): Generate
code that is backward compatible with pre-uuid search command.
2008-05-31 Robert Millan <rmh@aybabtu.com> 2008-05-31 Robert Millan <rmh@aybabtu.com>
* disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through

View file

@ -116,10 +116,9 @@ prepare_grub_to_access_device ()
# If there's a filesystem UUID that GRUB is capable of identifiing, use it; # If there's a filesystem UUID that GRUB is capable of identifiing, use it;
# otherwise set root as per value in device.map. # otherwise set root as per value in device.map.
echo "set root=`${grub_probe} --device ${device} --target=drive`"
if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then if fs_uuid="`${grub_probe} --device ${device} --target=fs_uuid 2> /dev/null`" ; then
echo "search --fs-uuid --set ${fs_uuid}" echo "search --fs-uuid --set ${fs_uuid}"
else
echo "set root=`${grub_probe} --device ${device} --target=drive`"
fi fi
# Abstraction modules aren't auto-loaded. # Abstraction modules aren't auto-loaded.