From: robertmh Date: Tue, 17 Jun 2008 13:35:04 +0000 (+0000) Subject: 2008-06-17 Robert Millan X-Git-Tag: 1.98~1474 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0aac2f79b739673f4550bbdf3e17a7f73e67e7fb;p=thirdparty%2Fgrub.git 2008-06-17 Robert Millan * util/update-grub_lib.in (prepare_grub_to_access_device): Use /boot/grub for the check in last commit, not /boot (they could be different partitions). --- diff --git a/ChangeLog b/ChangeLog index 653436fbe..efef229bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-17 Robert Millan + + * util/update-grub_lib.in (prepare_grub_to_access_device): Use + /boot/grub for the check in last commit, not /boot (they could be + different partitions). + 2008-06-16 Robert Millan * util/update-grub_lib.in (prepare_grub_to_access_device): If we were diff --git a/util/update-grub_lib.in b/util/update-grub_lib.in index ac84b0bd3..76b7460a1 100644 --- a/util/update-grub_lib.in +++ b/util/update-grub_lib.in @@ -114,9 +114,9 @@ prepare_grub_to_access_device () { device=$1 - # If our target is the same partition that provides /boot, our $root + # If our target is the same partition that provides /boot/grub, our $root # is already set to what we want, so no need to bother with UUIDs. - if [ "x${device}" = "x${GRUB_DEVICE_BOOT}" ] ; then + if [ "x${device}" = "x`${grub_probe} --target=device /boot/grub`" ] ; then return fi