Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document passing kernel command line arguments #183

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kousu
Copy link

@kousu kousu commented Mar 14, 2023

No description provided.

@kousu
Copy link
Author

kousu commented Mar 14, 2023

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 -@ and -u but doesn't mention in the argument summary that "extra command line arguments" exist, nor why you would care to use them.

Signed-off-by: kousu <nick@kousu.ca>
@kousu
Copy link
Author

kousu commented Mar 14, 2023

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!

Comment on lines +163 to +166
\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.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant