tech-userlevel archive

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

Re: Changing disk image boot options without root privileges



> How is the image made bootable in an unprivileged build ?
> The same can probably be used to change the boot option.

installboot(8) against a single raw ffs partition, then
MBR and swap etc. for the whole image are concatenated by cat(1):
 https://nxr.netbsd.org/xref/src/distrib/common/bootimage/Makefile.bootimage#371

(yes, it's so ugly, but no other better suggestion in PR/45153)

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index