Dylan's Main Page

Custom Kernel in OpenBSD bsd.rd


The bsd.rd file is a kernel and compressed ramdisk of a file system including the goodies required to install/upgrade OpenBSD. I have a system with a block device that isn't included in the default bsd.rd. I needed to create a custom bsd.rd to install OpenBSD.

Customize the Kernel

There are a few different RAMDISK kernels, and I chose to work with RAMDISK_CD. Go to /usr/src/sys/arch/i386/conf. Copy RAMDISK_CD to RAMDISK_CD.bak. Edit RAMDISK_CD to include your changes.

Install crunchgen

Go to /usr/src/distrib/crunch. Run "make" and "make install".

Install distrib/special

Go to /usr/src/distrib/special. Run "make" and "make install".

Build bsd.rd

Go to /usr/src/distrib/i386/ramdisk_cd. Type "make". You'll find bsd.rd, cd??.iso and a few more friends in the directory with you.


Updated Thu Jun 29 14:29:00 PDT 2006

Dylan's Main Page