代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/grub2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From a41df9b3cf6190ed8a2175602eb19a45d7e002aa Mon Sep 17 00:00:00 2001
From: nilusyi <nilusyi@tencent.com>
Date: Tue, 2 Apr 2024 16:52:33 +0800
Subject: [PATCH 199/272] BLS: create /etc/kernel/cmdline during mkconfig
- v2: squish: don't dup rhgb quiet, check mtimes
- v3: squish: give up on rhgb quiet
- v4: squish: BLS: only write /etc/kernel/cmdline if writable
Signed-off-by: nilusyi <nilusyi@tencent.com>
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
Signed-off-by: Jonathan Lebon <jonathan@jlebon.com>
---
util/grub.d/10_linux.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index 14df28135..7d843db85 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -163,6 +163,14 @@ update_bls_cmdline()
local cmdline="root=${LINUX_ROOT_DEVICE} ro ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
local -a files=($(get_sorted_bls))
+ if [ -w /etc/kernel ] && [[ ! -f /etc/kernel/cmdline ||
+ /etc/kernel/cmdline -ot /etc/default/grub ]]; then
+ # anaconda has the correct information to create this during install;
+ # afterward, grubby will take care of syncing on updates. If the user
+ # has modified /etc/default/grub, try to cope.
+ echo "$cmdline" > /etc/kernel/cmdline
+ fi
+
for bls in "${files[@]}"; do
local options="${cmdline}"
if [ -z "${bls##*debug*}" ]; then
--
2.41.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。