From 4c9832f7f2f10b7c224f50f1d33bf6f1c75042ee Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 9 Nov 2021 05:09:49 -0500 Subject: [PATCH] import grubby-8.40-42.el8 --- SOURCES/grubby-bls | 2 +- SPECS/grubby.spec | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/SOURCES/grubby-bls b/SOURCES/grubby-bls index 5b428a0..1a89d80 100755 --- a/SOURCES/grubby-bls +++ b/SOURCES/grubby-bls @@ -235,7 +235,7 @@ get_bls_args() { local opts=(${args}) for opt in ${opts[*]}; do - if [[ $opt =~ ^\$ ]]; then + if [[ $opt = "\$kernelopts" ]]; then value="$(expand_var $opt)" args="$(echo ${args} | sed -e "s/${opt}/${value}/")" fi diff --git a/SPECS/grubby.spec b/SPECS/grubby.spec index e26c6b1..aeeeb6f 100644 --- a/SPECS/grubby.spec +++ b/SPECS/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 41%{?dist} +Release: 42%{?dist} Summary: Command line tool for updating BootLoaderSpec files License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -169,6 +169,10 @@ current boot environment. %{_mandir}/man8/*.8* %changelog +* Wed Jun 09 2021 Javier Martinez Canillas - 8.40-42 +- grubby-bls: expand only the kernelopts variable + Resolves: rhbz#1819666 + * Thu May 07 2020 Javier Martinez Canillas - 8.40-41 - grubby-bls: only attempt to update the cmdline if was already set Related: rhbz#1152027