commands.sh

kernelstub

linux

Automatically manage Linux kernel loading on (U)EFI.

More info →

Options (9)

-o, --optionsboolean

Add custom kernel options

Example: sudo kernelstub {{[-o|--options]}} "{{quiet splash mitigations=off}}"
-v, --verboseboolean

Run in verbose mode with `systemd-boot` configuration

Example: sudo kernelstub {{[-v|--verbose]}} {{[-l|--loader]}}
-l, --loaderboolean

Run in verbose mode with `systemd-boot` configuration

Example: sudo kernelstub {{[-v|--verbose]}} {{[-l|--loader]}}
-m, --manage-onlyboolean

Copy kernel only to ESP without NVRAM changes

Example: sudo kernelstub {{[-m|--manage-only]}}
-c, --dry-runboolean

Run a simulation without making any changes (dry-run)

Example: sudo kernelstub {{[-c|--dry-run]}}
-k, --kernel-pathboolean

Specify paths manually

Example: sudo kernelstub {{[-k|--kernel-path]}} /{{path/to/vmlinuz}} {{[-i|--initrd-path]}} /{{path/to/initrd.img}} {{[-e|--esp-path]}} /{{path/to/efi_partition}}
-i, --initrd-pathboolean

Specify paths manually

Example: sudo kernelstub {{[-k|--kernel-path]}} /{{path/to/vmlinuz}} {{[-i|--initrd-path]}} /{{path/to/initrd.img}} {{[-e|--esp-path]}} /{{path/to/efi_partition}}
-e, --esp-pathboolean

Specify paths manually

Example: sudo kernelstub {{[-k|--kernel-path]}} /{{path/to/vmlinuz}} {{[-i|--initrd-path]}} /{{path/to/initrd.img}} {{[-e|--esp-path]}} /{{path/to/efi_partition}}
-p, --print-configboolean

Show current configuration

Example: sudo kernelstub {{[-p|--print-config]}}

Examples (7)

Configure the current kernel with default options

Add custom kernel options

sudo kernelstub [-o|--options] "quiet splash mitigations=off"

Run in verbose mode with `systemd-boot` configuration

sudo kernelstub [-v|--verbose] [-l|--loader]

Copy kernel only to ESP without NVRAM changes

sudo kernelstub [-m|--manage-only]

Run a simulation without making any changes (dry-run)

sudo kernelstub [-c|--dry-run]

Specify paths manually

sudo kernelstub [-k|--kernel-path] /path/to/vmlinuz [-i|--initrd-path] /path/to/initrd.img [-e|--esp-path] /path/to/efi_partition

Show current configuration

sudo kernelstub [-p|--print-config]
made by @shridhargupta | data from tldr-pages