Contributed by Janne Johansson on from the ram-a-llama-ding-dong dept.
Every OpenBSD admin has booted bsd.rd at least once — to install, upgrade, or rescue a broken system. But few people stop to look at what’s actually inside that file.
In this article over at the OpenBSD Jumpstart site, they take a look at just that.
The contents and format of the bsd.rd ramdisk kernel is shown, so you can understand and customize it for your own needs.
Enjoy!

By Yoshihiro Kawamata (ykaw) kaw@on.rim.or.jp on https://fuguita.org
This is generated by crunchgen(8).
crunchgen combines the source code of multiple commands into a single executable, but, like install.sub, its behavior changes depending on the command name it was invoked with.
You can see how it is actually used in files such as /usr/src/distrib/amd64/ramdisk_cd/Makefile.
Reply