This is the way I prepare OpenBSD installation DVDs for myself.
I use Linux, but this should be usable in other OSes (like *BSD) as well.
For this example, I used the 3.7/i386 version, but please use your
version and/or architecture to suit your needs.
1) Make a directory, in which you will prepare the whole CD layout,
preferably in the temporary directory, an cd into it.
Code:
mkdir /tmp/OpenBSD
cd /tmp/OpenBSD
2) Get files in your favourite way and populate the OpenBSD directory
with files, preserving the layout of the mirror. Because there
are numerous ways of doing this, I will write how this is supposed
to look like:
Code:
/tmp/OpenBSD:
3.7/
i386/
CKSUM
INSTALL.i386
INSTALL.linux
MD5
...
packages/
i386/
9libs-1.0p1.tgz
9menu-1.7.tgz
...
tools/
fips/
...
fdimage.exe
...
ANNOUNCEMENT
HARDWARE
...
3) To be able to boot, you have to create a new directory "etc"
in the OpenBSD directory (not in 3.7!) and create a file
"boot.conf" with the following one-line content:
Code:
set image /3.7/i386/bsd.rd
After you are done, the layout will be:
Code:
/tmp/OpenBSD:
3.7/
...
etc/
boot.conf
4) To be able to work with the DVD, we need to do some
permission changes. Do this in the command line
(you NEED NOT to be root).
Code:
you@yourdesk:/tmp/OpenBSD $ find -type f -exec chmod 0444 \{\} \;
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/bsd
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/bsd.mp
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/bsd.rd
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/cdboot
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/cdbr
you@yourdesk:/tmp/OpenBSD $ chmod 0555 3.7/i386/pxeboot
you@yourdesk:/tmp/OpenBSD $ find -type d -exec chmod 0555 \{\} \;
5) Now, you are ready to make a burnable image. In the /tmp
directory, issue the following command:
Code:
# HERE ARE FOUR SPACES ||||
# vvvv
mkisofs -R -T -V "OpenBSD/i386 3.7 install DVD" \
-p "Your Name <yname@your.domain>" \
-publisher "Your Name <yname@your.domain>" \
-A "OpenBSD 3.7 i386 unofficial install DVD" \
-b 3.7/i386/cdbr \
-c 3.7/i386/boot.catalog \
-no-emul-boot \
-uid 0 -gid 9 \
-o openbsd37.iso \
OpenBSD
Here you may need to change the -b and -c switch as I don't
know whether these apply to architectures other than i386.
Look into manual page for more information.
6) Now burn this image to DVD+R/DVD-R and enjoy.
For example, I use the following:
Code:
cdrecord-ProDVD -v dev=ATA:1,0,0 -dao /tmp/openbsd37.iso
7) Now you can delete the OpenBSD directory and the image.
I have used this way to make 3.6 i386 and 3.7 i386 bootable DVD.