diff --git a/docs/src/man/bootc-install-to-disk.md b/docs/src/man/bootc-install-to-disk.md index dc476ec9c..e60a78ac7 100644 --- a/docs/src/man/bootc-install-to-disk.md +++ b/docs/src/man/bootc-install-to-disk.md @@ -96,7 +96,9 @@ disabled but where the target does have SELinux enabled. **\--karg**=*KARG* -: Add a kernel argument +: Add a kernel argument. This option can be provided multiple times. + +Example: \--karg=nosmt \--karg=console=ttyS0,114800n8 **\--root-ssh-authorized-keys**=*ROOT_SSH_AUTHORIZED_KEYS* diff --git a/docs/src/man/bootc-install-to-existing-root.md b/docs/src/man/bootc-install-to-existing-root.md index f7da8decc..9397665f2 100644 --- a/docs/src/man/bootc-install-to-existing-root.md +++ b/docs/src/man/bootc-install-to-existing-root.md @@ -84,7 +84,9 @@ disabled but where the target does have SELinux enabled. **\--karg**=*KARG* -: Add a kernel argument +: Add a kernel argument. This option can be provided multiple times. + +Example: \--karg=nosmt \--karg=console=ttyS0,114800n8 **\--root-ssh-authorized-keys**=*ROOT_SSH_AUTHORIZED_KEYS* diff --git a/docs/src/man/bootc-install-to-filesystem.md b/docs/src/man/bootc-install-to-filesystem.md index b757b7cd0..52e3f3e88 100644 --- a/docs/src/man/bootc-install-to-filesystem.md +++ b/docs/src/man/bootc-install-to-filesystem.md @@ -98,7 +98,9 @@ disabled but where the target does have SELinux enabled. **\--karg**=*KARG* -: Add a kernel argument +: Add a kernel argument. This option can be provided multiple times. + +Example: \--karg=nosmt \--karg=console=ttyS0,114800n8 **\--root-ssh-authorized-keys**=*ROOT_SSH_AUTHORIZED_KEYS* diff --git a/lib/src/install.rs b/lib/src/install.rs index ff77971af..74ccfdfb0 100644 --- a/lib/src/install.rs +++ b/lib/src/install.rs @@ -133,8 +133,10 @@ pub(crate) struct InstallConfigOpts { #[serde(default)] pub(crate) disable_selinux: bool, + /// Add a kernel argument. This option can be provided multiple times. + /// + /// Example: --karg=nosmt --karg=console=ttyS0,114800n8 #[clap(long)] - /// Add a kernel argument karg: Option>, /// The path to an `authorized_keys` that will be injected into the `root` account.