]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Merge GRUBFS and GRUB_FS variables.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 7 Dec 2013 15:09:39 +0000 (16:09 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 7 Dec 2013 15:09:39 +0000 (16:09 +0100)
ChangeLog
util/grub-mkconfig.in
util/grub.d/10_linux.in
util/grub.d/20_linux_xen.in

index d7b9822949362b14aa31ae45fa94dab021e5a9e3..b27c22d2079c160dfdb05948ad356a6a0a57c062 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Merge GRUBFS and GRUB_FS variables.
+
 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
 
        Revert commit 69ca97c820, it caused failures when using OS device name
index 016ee82592e081493eebed003d45c3d77f9d68dd..7b85c8817b2dcf1509beaad1a1a4ae0457b82566 100644 (file)
@@ -139,6 +139,10 @@ GRUB_DEVICE_BOOT_UUID="`${grub_probe} --device ${GRUB_DEVICE_BOOT} --target=fs_u
 # choosing Hurd filesystem module.
 GRUB_FS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2> /dev/null || echo unknown`"
 
+if [ x"$GRUB_FS" = xunknown ]; then
+    GRUB_FS="$(stat -f --printf=%T / || echo unknown)"
+fi
+
 if test -f ${sysconfdir}/default/grub ; then
   . ${sysconfdir}/default/grub
 fi
index e27d6f75ec75d440e4964a756ff0368c5f0feb3e..00d193159e9e9d0bd7d674e023cc51d041f3ee15 100644 (file)
@@ -51,13 +51,7 @@ else
   LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
 fi
 
-GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
-
-if [ x"$GRUBFS" = x ]; then
-    GRUBFS="$(stat -f --printf=%T / || true)"
-fi
-
-case x"$GRUBFS" in
+case x"$GRUB_FS" in
     xbtrfs)
        rootsubvol="`make_system_path_relative_to_its_root /`"
        rootsubvol="${rootsubvol#/}"
index f12f05934f76bddc6e9ebf521c0d8ebc3688d135..a60843500edc08d4f9ae5f8969d8202b46a28fef 100644 (file)
@@ -59,13 +59,7 @@ if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
   GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
 fi
 
-GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
-
-if [ x"$GRUBFS" = x ]; then
-    GRUBFS="$(stat -f --printf=%T /)"
-fi
-
-case x"$GRUBFS" in
+case x"$GRUB_FS" in
     xbtrfs)
        rootsubvol="`make_system_path_relative_to_its_root /`"
        rootsubvol="${rootsubvol#/}"