systemctl: add --kernel-cmdline= argument

Allows appending kernel command line arguments, like
kexec-tool does. This is especially needed for the integration
tests, as mkosi adds a bunch of options that are needed for the
test suite to work, and it breaks without them.
This commit is contained in:
Luca Boccassi
2026-04-17 13:58:05 +01:00
parent 73aeb1b538
commit 2e79f8aa41
5 changed files with 44 additions and 1 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ _systemctl () {
--show-transaction -T --mkdir --read-only'
[ARG]='--host -H --kill-whom --property -p -P --signal -s --type -t --state --job-mode --root
--preset-mode -n --lines -o --output -M --machine --message --timestamp --check-inhibitors --what
--image --boot-loader-menu --boot-loader-entry --reboot-argument --drop-in'
--image --boot-loader-menu --boot-loader-entry --reboot-argument --kernel-cmdline --drop-in'
)
if __contains_word "--user" ${COMP_WORDS[*]}; then