From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 5 Oct 2018 16:29:47 +0200 Subject: [PATCH] Only set kernelopts in grubenv if it wasn't set before Users may want to use a different command line parameters, so if there's a kernelopts var set in grubenv, grub2-mkconfig shouldn't reset it. While being there, print a warning so users know that they shouldn't edit the grub config file and instead edit the BootLoaderSpec config files. Resolves: rhbz#1636466 Signed-off-by: Javier Martinez Canillas --- util/grub.d/10_linux.in | 20 +++++++++++++++++++- util/grub.d/10_linux_bls.in | 4 +++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 9682e97b7..01e66e5fc 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -82,6 +82,20 @@ case x"$GRUB_FS" in ;; esac +populate_header_warn() +{ +cat <