* util/grub.d/20_linux_xen.in: Likewise.
Based on Debian patch.
+2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
+ * util/grub.d/20_linux_xen.in: Likewise.
+ Based on Debian patch.
+
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub.d/10_linux.in: Fix syntax error resulting in
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
xbtrfs)
rootsubvol="`make_system_path_relative_to_its_root /`"
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
xbtrfs)
rootsubvol="`make_system_path_relative_to_its_root /`"