News for hackers. Stuff that matters.
Re:No more boot loader: Please use the kernel instead by TylerE on Monday July 08, 2024 @05:59PM (#40910198)
Theoretically, couldn't it just write to a "boot this image next time" field (is the legacy MBR area available?) and trigger a reboot?
Re:No more boot loader: Please use the kernel instead by adtac on Monday July 08, 2024 @06:25PM (#40910407)
The target image would need to reset that field so that a second reboot puts you back into the bootloader because otherwise you'll be stuck booting that image forever.
Re:No more boot loader: Please use the kernel instead by rcxdude on Monday July 08, 2024 @08:24PM (#40911313)
The image doesn't need to do it, that's how UEFI bootnext works: the firmware resets the flag before it loads the image.
Re:No more boot loader: Please use the kernel instead by garaetjjte on Monday July 08, 2024 @06:27PM (#40910421)
Well you could change default boot entry in efivars, but if you're relying on firmware for that why not use firmware provided boot menu anyway?
Re:No more boot loader: Please use the kernel instead by Arch-TK on Tuesday July 09, 2024 @12:12PM (#40917787)
The boot disk isn't guaranteed to be writable.
Re:No more boot loader: Please use the kernel instead by TylerE on Tuesday July 09, 2024 @01:47PM (#40918894)
Even after you’ve already installed a custom boot laser to it? I mean, I agree with you in principle, but we already have the chicken - can’t existence of the egg be assumed?
Re:No more boot loader: Please use the kernel instead by yjftsjthsd-h on Wednesday July 10, 2024 @02:05PM (#40929650)
Consider a DVD that's EFI bootable; we can have whatever bootloader we want on the disc but it is not physically writable
Re:No more boot loader: Please use the kernel instead by Arch-TK on Wednesday July 10, 2024 @02:47PM (#40930082)
Aside from the DVD issue mentioned in the other person's comment. I have a design for a SED OPAL based encryption setup where the system boots with a read-only boot partition and it only becomes RW as part of the initramfs running (although optionally you can just keep it RO until you need to write to it, but this requires buy-in from the package manager).

I think network booting with EFI would also suffer from a similar problem.