2008-05-31 Robert Millan <rmh@aybabtu.com>
* util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'. * util/update-grub.in: Likewise.
This commit is contained in:
parent
520ae21bb7
commit
69ba137ec8
3 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-05-31 Robert Millan <rmh@aybabtu.com>
|
||||
|
||||
* util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
|
||||
* util/update-grub.in: Likewise.
|
||||
|
||||
2008-05-30 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util/biosdisk.c (linux_find_partition): Simplify logic and
|
||||
|
|
|
@ -100,16 +100,16 @@ if test -e ${grub_prefix}/device.map ; then : ; else
|
|||
fi
|
||||
|
||||
# Device containing our userland. Typically used for root= parameter.
|
||||
GRUB_DEVICE="`grub-probe --target=device /`"
|
||||
GRUB_DEVICE_UUID="`grub-probe --device ${GRUB_DEVICE} --target=fs_uuid 2> /dev/null`" || true
|
||||
GRUB_DEVICE="`${grub_probe} --target=device /`"
|
||||
GRUB_DEVICE_UUID="`${grub_probe} --device ${GRUB_DEVICE} --target=fs_uuid 2> /dev/null`" || true
|
||||
|
||||
# Device containing our /boot partition. Usually the same as GRUB_DEVICE.
|
||||
GRUB_DEVICE_BOOT="`grub-probe --target=device /boot`"
|
||||
GRUB_DEVICE_BOOT_UUID="`grub-probe --device ${GRUB_DEVICE_BOOT} --target=fs_uuid 2> /dev/null`" || true
|
||||
GRUB_DEVICE_BOOT="`${grub_probe} --target=device /boot`"
|
||||
GRUB_DEVICE_BOOT_UUID="`${grub_probe} --device ${GRUB_DEVICE_BOOT} --target=fs_uuid 2> /dev/null`" || true
|
||||
|
||||
# Filesystem for the device containing our userland. Used for stuff like
|
||||
# choosing Hurd filesystem module.
|
||||
GRUB_FS="`grub-probe --target=fs / 2> /dev/null || echo unknown`"
|
||||
GRUB_FS="`${grub_probe} --target=fs / 2> /dev/null || echo unknown`"
|
||||
|
||||
if test -f ${sysconfdir}/default/grub ; then
|
||||
. ${sysconfdir}/default/grub
|
||||
|
|
|
@ -116,7 +116,7 @@ prepare_grub_to_access_device ()
|
|||
|
||||
# If there's a filesystem UUID that GRUB is capable of identifiing, use it;
|
||||
# otherwise set root as per value in device.map.
|
||||
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}"
|
||||
else
|
||||
echo "set root=`${grub_probe} --device ${device} --target=drive`"
|
||||
|
|
Loading…
Reference in a new issue