代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/grubby 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From ee49b7b71d017097be5b4a0f32bff83379b0a86e Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javierm@redhat.com>
Date: Mon, 18 Mar 2019 12:53:23 +0100
Subject: [PATCH 60/60] Print default image even if isn't a suitable one
The grubby --default-kernel option only prints the default kernel if
this
is a suitable one. That is if its associated kernel cmdline root param
is
the same than the partition currently mounted as the filesystem root.
But the grubby --set-default option doesn't have that restriction, it is
able to set a kernel as the default even if its root is for a different
partition. So make the --default-kernel option to also print the kernel
in this case. Still check if is a suitable image so --debug can tell it.
Resolves: rhbz#1323842
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
---
grubby.c | 4 +++-
test/results/debug/g2.1 | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/grubby.c b/grubby.c
index 522d4d5..c3249bf 100644
--- a/grubby.c
+++ b/grubby.c
@@ -4887,7 +4887,9 @@ int main(int argc, const char ** argv) {
config->defaultImage = 0;
entry = findEntryByIndex(config, config->defaultImage);
if (!entry) return 0;
- if (!suitableImage(entry, bootPrefix, 0, flags)) return 0;
+
+ /* check if is a suitable image but still print it */
+ suitableImage(entry, bootPrefix, 0, flags);
line = getLineByType(LT_KERNEL|LT_HYPER|LT_KERNEL_EFI|LT_KERNEL_16, entry->lines);
if (!line) return 0;
diff --git a/test/results/debug/g2.1 b/test/results/debug/g2.1
index f5187f5..d579b59 100644
--- a/test/results/debug/g2.1
+++ b/test/results/debug/g2.1
@@ -12,3 +12,4 @@ DBG: linux /vmlinuz-2.6.38.8-32.fc15.x86_64 root=/dev/mapper/vg_pjones5-lv_root
DBG: echo 'Loading initial ramdisk ...'
DBG: initrd /initramfs-2.6.38.8-32.fc15.x86_64.img
DBG: }
+/boot/vmlinuz-2.6.38.8-32.fc15.x86_64
--
2.19.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。