1 Star 0 Fork 16

jackzhao166/grub2

forked from OpenCloudOS Stream/grub2 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0065-grub2-btrfs-help-on-snapper-rollback.patch 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
nilusyi 提交于 2024-04-07 16:45 . update patches
From a6acf2d85ae2b276b551cd5d4d6a503bd1a0fac9 Mon Sep 17 00:00:00 2001
From: nilusyi <nilusyi@tencent.com>
Date: Mon, 1 Apr 2024 19:10:44 +0800
Subject: [PATCH 065/272] grub2 btrfs help on snapper rollback
Signed-off-by: nilusyi <nilusyi@tencent.com>
---
util/grub.d/00_header.in | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in
index 8b2658279..f900f9773 100644
--- a/util/grub.d/00_header.in
+++ b/util/grub.d/00_header.in
@@ -401,8 +401,14 @@ if [ "x${SUSE_BTRFS_SNAPSHOT_BOOTING}" = "xtrue" ] &&
# Note: No $snapshot_num on *read-only* rollback! (bsc#901487)
cat <<EOF
if [ -n "\$extra_cmdline" ]; then
- submenu "Bootable snapshot #\$snapshot_num" {
- menuentry "If OK, run 'snapper rollback' and reboot." { true; }
+ menuentry "Help on bootable snapshot #\$snapshot_num" {
+ echo "Select the default entry of the snapshot boot menu."
+ echo "Examine the snapshot, and if it's OK,"
+ echo " run 'snapper rollback' and reboot."
+ echo "See 'System Rollback by Booting from Snapshots'"
+ echo " in the manual for more information."
+ echo " ** Hit Any Key to return to boot menu ** "
+ read
}
fi
EOF
--
2.41.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jackzhao166/grub2.git
git@gitee.com:jackzhao166/grub2.git
jackzhao166
grub2
grub2
master

搜索帮助