* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add

explicit root argument to set to prevent UUID to be interpreted as
	argument to set.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-14 21:04:08 +02:00
parent b71c3faedb
commit 3c3b5040cd
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
explicit root argument to set to prevent UUID to be interpreted as
argument to set.
2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.

View file

@ -119,7 +119,7 @@ prepare_grub_to_access_device ()
# 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
echo "search --no-floppy --fs-uuid --set ${fs_uuid}"
echo "search --no-floppy --fs-uuid --set=root ${fs_uuid}"
fi
}