OpenBSD Journal

bsd.rd breakdown

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!


Comments
  1. By Yoshihiro Kawamata (ykaw) kaw@on.rim.or.jp on https://fuguita.org

    An important mechanism that should be further explained is the crunched binary.
    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.

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]