News for hackers. Stuff that matters.
Re:Writing an x86 bootloader in Rust that can launch vmlinux by tremon on Friday September 18, 2020 @02:05PM (#24519965)
it's possible, but you must include the path to the initramfs as a kernel parameter (using DOS-style paths, not sure if unix-style works too).

A linux-aware bootloader will usually load the initramfs itself and pass linux the memory address where it's loaded, in UEFI the kernel gets "executed" like a normal executable, so it has a commandline but not a pre-loaded initramfs.

My efibootmgr entry looks like this (root is btrfs on LUKS):

  HD(disk-id)/File(\vmlinux-5.6.0-2-rt-amd64) initrd=\initrd.img-5.6.0-2-rt-amd64 ro root=/dev/mapper/cryptpv0
The latter part is what you must supply manually if you want to start the kernel from the UEFI command line.
Re:Writing an x86 bootloader in Rust that can launch vmlinux by alias_neo on Sunday September 20, 2020 @04:41AM (#24532738)
Great thanks, I'll give this another go.