From 7ef93b059af23e111e37b27b97caf39d7630850d7f8732048dfc30e52c9e77cc Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Wed, 27 Nov 2019 07:50:22 +0000 Subject: [PATCH] Accepting request 751177 from home:michael-chang:branches:devel:openSUSE:Factory - shim-install: add check for btrfs is used as root file system to enable relative path lookup for file. (bsc#1153953) OBS-URL: https://build.opensuse.org/request/show/751177 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/shim?expand=0&rev=154 --- shim-install | 7 ++++++- shim.changes | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/shim-install b/shim-install index 9b8b5ff..5b75b51 100644 --- a/shim-install +++ b/shim-install @@ -294,8 +294,13 @@ make_grubcfg () { grub_cfg_dirname=`dirname $grub_cfg` grub_cfg_basename=`basename $grub_cfg` cfg_fs_uuid=`"$grub_probe" --target=fs_uuid "$grub_cfg_dirname"` +# bsc#1153953 - Leap 42.3 boot error snapshot missing +# We have to check btrfs is used as root file system to enable relative path +# lookup for file to be on par with other utility which also accounts for it. +GRUB_FS="$(stat -f --printf=%T / || echo unknown)" -if test "x$SUSE_BTRFS_SNAPSHOT_BOOTING" = "xtrue"; then +if test "x$SUSE_BTRFS_SNAPSHOT_BOOTING" = "xtrue" && + [ "x${GRUB_FS}" = "xbtrfs" ] ; then cat < + +- shim-install: add check for btrfs is used as root file system to enable + relative path lookup for file. (bsc#1153953) + ------------------------------------------------------------------- Fri Aug 16 04:07:30 UTC 2019 - Gary Ching-Pang Lin