tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: "Boot this kernel once" functionality? (amd64)



On Wed, Sep 16, 2020 at 12:05:26PM +0200, Anthony Mallet wrote:
> I was also wondering if it would be possible to pass arguments to the
> primary or secondary bootloader via reboot(2) and the boothowto
> flags. But this doesn't seem doable. Right?

This works fine on e.g. sparc*; I can do: shutdown -b netbsd.t -r now

and it will pass "netbsd.t" as boot argument to the firmware, which passes
it on to the bootloader and then it boots /netbsd.t once.

No state is modified on any disks, very convenient.

I don't know if there is enough of a persistent environment for UEFI boots
(I would guess there is), and probably no easy way for BIOS boot.

Martin


Home | Main Index | Thread Index | Old Index