mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-24 08:09:22 +00:00
Merge GRUBFS and GRUB_FS variables.
This commit is contained in:
1 parent
92e9352ded
commit
4c4ea9c7b5
4 files changed
+10
-14
No files matched your search
@@ -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>
|
2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
|
||||||
|
|
||||||
Revert commit 69ca97c820, it caused failures when using OS device name
|
Revert commit 69ca97c820, it caused failures when using OS device name
|
||||||
|
|||||||
@@ -139,6 +139,10 @@ GRUB_DEVICE_BOOT_UUID="`${grub_probe} --device ${GRUB_DEVICE_BOOT} --target=fs_u
|
|||||||
# choosing Hurd filesystem module.
|
# choosing Hurd filesystem module.
|
||||||
GRUB_FS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2> /dev/null || echo unknown`"
|
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
|
if test -f ${sysconfdir}/default/grub ; then
|
||||||
. ${sysconfdir}/default/grub
|
. ${sysconfdir}/default/grub
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -51,13 +51,7 @@ else
|
|||||||
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
|
LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
|
case x"$GRUB_FS" in
|
||||||
|
|
||||||
if [ x"$GRUBFS" = x ]; then
|
|
||||||
GRUBFS="$(stat -f --printf=%T / || true)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case x"$GRUBFS" in
|
|
||||||
xbtrfs)
|
xbtrfs)
|
||||||
rootsubvol="`make_system_path_relative_to_its_root /`"
|
rootsubvol="`make_system_path_relative_to_its_root /`"
|
||||||
rootsubvol="${rootsubvol#/}"
|
rootsubvol="${rootsubvol#/}"
|
||||||
|
|||||||
@@ -59,13 +59,7 @@ if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
|
|||||||
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
|
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GRUBFS="`${grub_probe} --device ${GRUB_DEVICE} --target=fs 2>/dev/null || true`"
|
case x"$GRUB_FS" in
|
||||||
|
|
||||||
if [ x"$GRUBFS" = x ]; then
|
|
||||||
GRUBFS="$(stat -f --printf=%T /)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
case x"$GRUBFS" in
|
|
||||||
xbtrfs)
|
xbtrfs)
|
||||||
rootsubvol="`make_system_path_relative_to_its_root /`"
|
rootsubvol="`make_system_path_relative_to_its_root /`"
|
||||||
rootsubvol="${rootsubvol#/}"
|
rootsubvol="${rootsubvol#/}"
|
||||||
|
|||||||
Reference in new issue
Block a user