]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 18 Jun 2012 19:07:26 +0000 (21:07 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 18 Jun 2012 19:07:26 +0000 (21:07 +0200)
UUID search command even if hints probing failed.

ChangeLog
util/grub-mkconfig_lib.in

index 14011138812846dd7b44ee8455775fde3da4cbe4..64c88d474fdc64dd964e7e448a5de77365db95a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2012-06-17  Vladimir Serbinenko  <phcoder@gmail.com>
+2012-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
+       UUID search command even if hints probing failed.
+
+2012-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * po/POTFILES.in: Regenerated.
 
index 606cb04aa1744fd9a8c1036db4ce3d55f2305a7f..2b887b195e194362eaa3b4107c1bccac05400a5f 100644 (file)
@@ -153,7 +153,7 @@ prepare_grub_to_access_device ()
     echo "set root='$fs_hint'"
   fi
   if fs_uuid="`"${grub_probe}" --device "${device}" --target=fs_uuid 2> /dev/null`" ; then
-    hints="`"${grub_probe}" --device "${device}" --target=hints_string 2> /dev/null`"
+    hints="`"${grub_probe}" --device "${device}" --target=hints_string 2> /dev/null`" || hints=
     echo "if [ x\$feature_platform_search_hint = xy ]; then"
     echo "  search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}"
     echo "else"