From 2562b2ffceb9d5644c700c634cf409f859a4ef90d4c00ccdac42f876422dd59a Mon Sep 17 00:00:00 2001 From: Gary Ching-Pang Lin Date: Tue, 29 Apr 2014 07:55:23 +0000 Subject: [PATCH] Accepting request 231974 from home:michael-chang:branches:devel:openSUSE:Factory - shim-install: fix boot partition and rollback support kluge (bnc#875385) OBS-URL: https://build.opensuse.org/request/show/231974 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory/shim?expand=0&rev=74 --- shim-install | 45 +++++---------------------------------------- shim.changes | 6 ++++++ 2 files changed, 11 insertions(+), 40 deletions(-) diff --git a/shim-install b/shim-install index 93c1ddc..1248a09 100644 --- a/shim-install +++ b/shim-install @@ -233,55 +233,20 @@ 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"` -descriptive_config="snapshot_submenu.cfg" -root_fstype=`$grub_probe -t fs /` -boot_fstype=`$grub_probe -t fs /boot` -if [ "x${root_fstype}" != "xbtrfs" ] || - [ "x${boot_fstype}" != "xbtrfs" ]; then - echo "/ is not on btrfs" >&2 - exit 1; -fi - -if test "x$SUSE_BTRFS_SNAPSHOT_BOOTING" = "xtrue" && - test "x$root_fstype" = "xbtrfs" && - test "x$boot_fstype" = "xbtrfs"; then +if test "x$SUSE_BTRFS_SNAPSHOT_BOOTING" = "xtrue"; then cat <