Document passing kernel command line arguments#183
Conversation
|
I recently switched to using UKI, which as I understand normally copies the kernel command line from /etc/cmdline and embeds it into itself, but can read kernel line options from the efi boot entry; and if using EFISTUB using the extra options is mandatory to make a booting system. The only documentation I could find online for how to actually make my system boot this way without a third party bootloader was in
I think the manpage should explain this better! The manpage nods at this feature with the docs for |
Signed-off-by: kousu <nick@kousu.ca>
|
If I need to write a better commit message or I messed up the manpage syntax or anything or I got anything factually wrong here let me know! |
| \fBboot_cmdline \fR | ||
| If provided, extra arguments are appended to the boot entry, | ||
| and are passed as command line arguments to the EFI program | ||
| specified with \fB-l\fR. |
There was a problem hiding this comment.
I'm not clear if the extra arguments need to be a single argument (i.e. quoted) or not. I've seen both. E.g. in http://www.rodsbooks.com/efi-bootloaders/efistub.html it's unquoted
# efibootmgr -c -d /dev/sda -p 1 -L "Arch Linux" -l '\EFI\arch\vmlinuz-arch.efi' -u root=/dev/sda3 ro initrd=EFI/arch/initramfs-arch.img
but https://wiki.archlinux.org/title/EFISTUB#efibootmgr quotes:
# efibootmgr --create --disk /dev/sdX --part Y --label "Arch Linux" --loader /vmlinuz-linux --unicode 'root=block_device_identifier resume=block_device_identifier rw initrd=\initramfs-linux.img'
No description provided.