From 76d155509cc40843a73d4395d9e97d5c60843237 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Fri, 29 Mar 2024 13:50:53 +0300 Subject: [PATCH] Import from CS git --- 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 f5b9735..07df5c8 100755 --- a/SOURCES/grubby-bls +++ b/SOURCES/grubby-bls @@ -500,7 +500,7 @@ update_bls_fragment() { if [[ -n $old_args ]]; then opts="$(update_args "${old_args}" "${remove_args}" "${add_args}")" opts="$(echo "$opts" | sed -e 's/\//\\\//g')" - sed -i -e "s/^GRUB_CMDLINE_LINUX.*/GRUB_CMDLINE_LINUX=\\\"${opts}\\\"/" "${grub_etc_default}" + sed -i -e "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\\\"${opts}\\\"/" "${grub_etc_default}" fi fi diff --git a/SPECS/grubby.spec b/SPECS/grubby.spec index 1e9ae63..878b99d 100644 --- a/SPECS/grubby.spec +++ b/SPECS/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 48%{?dist} +Release: 49%{?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 Jan 10 2024 Marta Lewandowska - 8.40-49 +- Do not overwrite all vars that start with GRUB_CMDLINE_LINUX +- Resolves: #RHEL-12853 + * Tue Feb 21 2023 Marta Lewandowska - 8.40-48 - Apply Marta's default args fix - Resolves: #1900829