A few months ago, i put together some intsructions for making a livecd,
but didn't have the time to complete it, i'll post them here, and if
anybody wants,
we can work on it together and complete it and post it to the
mailinglist and perhaps openbsdsupport.org ?
So here we go :
# cd /usr
# export [EMAIL PROTECTED]:/cvs
# cvs -d$CVSROOT checkout -P src
# mkdir -p /livecd/backups/{var,etc,dev}
# cp -pR /var /livecd/backups/var
# cp -pR /etc /livecd/backups/etc
# cp -pR /dev/MAKEDEV /livecd/backups/dev
1.
# tar -zcvf livecd.tgz /
# tar -zxvf livecd.tgz -C /livecd/
# rm -r /livecd/usr/src/*
2.
# wget ftp://ftp.jyu.fi/pub/OpenBSD/snapshots/i386/base37.tgz
# wget ftp://ftp.jyu.fi/pub/OpenBSD/snapshots/i386/etc37.tgz
# tar -zxvf base37.tgz -C /livecd/
# tar -zxvf etc37.tgz -C /livecd/
# cd /usr/src/sys/arch/i386/conf
# mv RAMDISK_CD RAMDISK_CD.OLD
# cp GENERIC RAMDISK_CD
# vi RAMDISK_CD
- config bsd swap generic
+option RAMDISK_HOOKS
+option MINIROOTSIZE=3800
+config bsd root on cd0a
# cd /usr
# vi Makefile.in
________________________________________________________________________
__
--- src/distrib/i386/common/Makefile.inc.orig Thu Mar 3 09:16:02
2005
+++ src/distrib/i386/common/Makefile.inc Thu Mar 3 09:16:32 2005
@@ -33,8 +33,7 @@
newfs -m 0 -o space -i 524288 -c 80 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
cp ${BOOT} ${.OBJDIR}/boot
- strip ${.OBJDIR}/boot
- strip -R .comment ${.OBJDIR}/boot
+ strip -s -R .comment -K cngetc ${.OBJDIR}/boot
dd if=${.OBJDIR}/boot of=${MOUNT_POINT}/boot bs=512
dd if=bsd.gz of=${MOUNT_POINT}/bsd bs=512
/usr/mdec/installboot -v ${MOUNT_POINT}/boot \
@@ -54,8 +53,7 @@
bsd.gz: bsd.rd
cp bsd.rd bsd.strip
- strip bsd.strip
- strip -R .comment bsd.strip
+ strip -s -R .comment -K cngetc bsd.strip
gzip -c9 bsd.strip > bsd.gz
bsd.rd: ${IMAGE} bsd rdsetroot
________________________________________________________________________
__
# patch -p0 < Makefile.in
# cd /usr/src/distrib/crunch && make && make install
# cd /usr/src/distrib/i386/ramdisk_cd && make
# cd /usr/src/distrib/i386/ramdisk_cd
# cp bsd cdrom37.fs /livecd/
# vi /livecd/etc/rc
# vi /livecd/etc/fstab
# vi /livecd/backups/etc/rc
# vi /livecd/backups/etc/fstab
# cd /livecd && mkisofs -b cdrom37.fs -c boot.catalog -R -v -o /tmp/
livecd.iso /livecd
# cdrecord -v speed=24 dev=/dev/rcd0c -data /tmp/livecd.iso
The fstab and and rc files are available from the livecd article at
oreilly.
If anybody feels like creating a howto for creating a livecd, feel
free to contact me.