Hacker News new | past | comments | ask | show | jobs | submit login

To pass kernel parameters? How would you do that without a bootloader?



EFI can pass kernel parameters just fine, both in the default boot entries or when running the kernel from the EFI shell.


What about doing that once without using e.g. efibootmgr?


You can just pass the custom command line as you run the kernel from UEFI shell prompt, e.g.

  fs0:linux.efi root=/dev/nvme0n1p1 initrd=ramfs.img loglevel=2
In my experience the nuisance part is creating and editing boot entries, especially if you try to set them up from the UEFI shell, so I tend to compile any initramfs and the default kernel command line into my kernel so I can drop it at /boot/efi/boot/bootx64.efi and minimise contact with the UEFI monstrosity.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: