Skip to content

Commit

Permalink
BLS: create /etc/kernel/cmdline during mkconfig
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
  • Loading branch information
frozencemetery committed Aug 2, 2022
1 parent 35b5d5f commit 0837dcd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/grub.d/10_linux.in
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ update_bls_cmdline()
local cmdline="root=${LINUX_ROOT_DEVICE} ro ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
local -a files=($(get_sorted_bls))

if [[ ! -f /etc/kernel/cmdline ]]; then
# anaconda has the correct information to do this during install;
# afterward, grubby will take care of syncing on updates.
echo "$cmdline rhgb quiet" > /etc/kernel/cmdline
fi

for bls in "${files[@]}"; do
local options="${cmdline}"
if [ -z "${bls##*debug*}" ]; then
Expand Down

0 comments on commit 0837dcd

Please sign in to comment.