]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Feb 2010 13:47:50 +0000 (14:47 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 14 Feb 2010 13:47:50 +0000 (14:47 +0100)
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
set root in single quotes to prevent \, from being unescaped.

ChangeLog
util/grub-mkconfig_lib.in

index 7c8e0a9883b5e5d6ec77926f2a8cd03ccbd83a90..40339456013e7874c6c812e068d4714e33eae452 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
+       set root in single quotes to prevent \, from being unescaped.
+
 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Prevent unknown commands from stopping menuentry execution.
index fc24c7b706319ed7a53809ef21d4beeffe26c27e..45354041a9b26412dab74d0d67a485fe5c5f2be3 100644 (file)
@@ -120,7 +120,7 @@ prepare_grub_to_access_device ()
 
   # If there's a filesystem UUID that GRUB is capable of identifying, use it;
   # otherwise set root as per value in device.map.
-  echo "set root=`${grub_probe} --device ${device} --target=drive`"
+  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}"
   fi