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