nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0094-No-more-Bootable-Snapshot-submenu-in-grub.cfg.patch

d9d99f
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
d9d99f
From: Dusty Mabe <dusty@dustymabe.com>
d9d99f
Date: Sat, 18 Jul 2015 15:38:08 +0000
d9d99f
Subject: [PATCH] No more "Bootable Snapshot" submenu in grub.cfg.
d9d99f
d9d99f
This breaks grubby (run on kernel upgrades) because grubby just
d9d99f
does a search for "menuentry".
d9d99f
---
d9d99f
 util/grub.d/00_header.in | 12 ------------
d9d99f
 1 file changed, 12 deletions(-)
d9d99f
d9d99f
diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
b71686
index e2a533001..8a16fea34 100644
d9d99f
--- a/util/grub.d/00_header.in
d9d99f
+++ b/util/grub.d/00_header.in
d9d99f
@@ -366,15 +366,3 @@ fi
d9d99f
 if [ "x${GRUB_BADRAM}" != "x" ] ; then
d9d99f
   echo "badram ${GRUB_BADRAM}"
d9d99f
 fi
d9d99f
-
d9d99f
-if [ "x${SUSE_BTRFS_SNAPSHOT_BOOTING}" = "xtrue" ] &&
d9d99f
-   [ "x${GRUB_FS}" = "xbtrfs" ] ; then
d9d99f
-    # Note: No $snapshot_num on *read-only* rollback!  (bsc#901487)
d9d99f
-    cat <
d9d99f
-if [ -n "\$extra_cmdline" ]; then
d9d99f
-  submenu "Bootable snapshot #\$snapshot_num" {
d9d99f
-    menuentry "If OK, run 'snapper rollback' and reboot." { true; }
d9d99f
-  }
d9d99f
-fi
d9d99f
-EOF
d9d99f
-fi