From be4bc619fd9ace2e8d9f1009c6f978bae8a283ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Ravier?= Date: Thu, 30 May 2024 10:10:59 +0000 Subject: [PATCH] bootloader/config/grub2: Only append to cmdline in ostree case --- kiwi/bootloader/config/grub2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiwi/bootloader/config/grub2.py b/kiwi/bootloader/config/grub2.py index dcd03534f83..171690d600a 100644 --- a/kiwi/bootloader/config/grub2.py +++ b/kiwi/bootloader/config/grub2.py @@ -1441,9 +1441,10 @@ def _fix_grub_loader_entries_boot_cmdline(self): for menu_entry_file in glob.iglob(loader_entries_pattern): with open(menu_entry_file) as grub_menu_entry_file: menu_entry = grub_menu_entry_file.read() + # Made append only menu_entry = re.sub( r'options (.*)', - r'options {0}'.format(self.cmdline), + r'options \1 {0}'.format(self.cmdline), menu_entry ) with open(menu_entry_file, 'w') as grub_menu_entry_file: