Blame SOURCES/0267-BLS-create-etc-kernel-cmdline-during-mkconfig.patch

b35c50
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
b35c50
From: Robbie Harwood <rharwood@redhat.com>
b35c50
Date: Tue, 2 Aug 2022 15:56:28 -0400
b35c50
Subject: [PATCH] BLS: create /etc/kernel/cmdline during mkconfig
b35c50
b35c50
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
b35c50
---
b35c50
 util/grub.d/10_linux.in | 6 ++++++
b35c50
 1 file changed, 6 insertions(+)
b35c50
b35c50
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
b35c50
index 865af3d6c4..9ebff661a9 100644
b35c50
--- a/util/grub.d/10_linux.in
b35c50
+++ b/util/grub.d/10_linux.in
b35c50
@@ -161,6 +161,12 @@ update_bls_cmdline()
b35c50
     local cmdline="root=${LINUX_ROOT_DEVICE} ro ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
b35c50
     local -a files=($(get_sorted_bls))
b35c50
 
b35c50
+    if [[ ! -f /etc/kernel/cmdline ]]; then
b35c50
+	# anaconda has the correct information to do this during install;
b35c50
+	# afterward, grubby will take care of syncing on updates.
b35c50
+	echo "$cmdline rhgb quiet" > /etc/kernel/cmdline
b35c50
+    fi
b35c50
+
b35c50
     for bls in "${files[@]}"; do
b35c50
         local options="${cmdline}"
b35c50
         if [ -z "${bls##*debug*}" ]; then