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