Skip to content

Commit

Permalink
rpmostree: Use --merge for kargs
Browse files Browse the repository at this point in the history
Without `--merge`, all kernel arguments will be replaced, which is
not what is desired in general. Especially with bootc karg support
which we definitely want to work with Anaconda.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Jan 10, 2025
1 parent 915bc1d commit cb7276e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def _set_kargs(self):
device_tree.GetDeviceData(root_id)
)

set_kargs_args = ["admin", "instutil", "set-kargs"]
set_kargs_args = ["admin", "instutil", "set-kargs", "--merge"]
set_kargs_args.extend(bootloader.GetArguments())
set_kargs_args.append("root=" + device_tree.GetFstabSpec(root_id))
set_kargs_args.append("vconsole.keymap=" + localization.VirtualConsoleKeymap)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ def test_btrfs_run(self, devdata_mock, storage_mock, localization_mock,
["admin",
"instutil",
"set-kargs",
"--merge",
"BOOTLOADER-ARGS",
"root=FSTAB-SPEC",
"vconsole.keymap=cs",
Expand Down Expand Up @@ -773,6 +774,7 @@ def test_nonbtrfs_run(self, devdata_mock, storage_mock, localization_mock,
["admin",
"instutil",
"set-kargs",
"--merge",
"BOOTLOADER-ARGS",
"root=FSTAB-SPEC",
"vconsole.keymap=cs",
Expand Down Expand Up @@ -825,6 +827,7 @@ def test_bootupd_run(self, devdata_mock, storage_mock, localization_mock, symlin
["admin",
"instutil",
"set-kargs",
"--merge",
"BOOTLOADER-ARGS",
"root=FSTAB-SPEC",
"vconsole.keymap=cs",
Expand Down Expand Up @@ -878,6 +881,7 @@ def test_bootupd_run_with_leavebootorder(self, devdata_mock, storage_mock, local
["admin",
"instutil",
"set-kargs",
"--merge",
"BOOTLOADER-ARGS",
"root=FSTAB-SPEC",
"vconsole.keymap=cs",
Expand Down

0 comments on commit cb7276e

Please sign in to comment.