Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Mar 2007 17:37:36 +0200
From:      Olivier Regnier <oregnier@steelbox.org>
To:        freebsd-questions@freebsd.org
Subject:   Making Customized Bootable FreeBSD
Message-ID:  <4607E8C0.9050608@steelbox.org>

next in thread | raw e-mail | index | archive | help
Hello,

After 3 hours, i made my bootable FreeBSD CD/Floppies. Actually, i 
finished my install.cfg but i have a problem because i don't understand 
the final step :

# mkdir /img
# cd $CHROOTDIR/R/cdrom/disk1/floppies

/* Get mfsroot.gz from mfsroot.flp */
# vnconfig /dev/vn0c mfsroot.flp
# mount /dev/vn0c /img
# cp /img/mfsroot.gz .
# umount /img
# vnconfig -u /dev/vn0c

/* Unzip mfsroot.gz to get mfsroot */
# gunzip mfsroot.gz

/* Put your config file in mfsroot */
# vnconfig /dev/vn0c mfsroot
# mount /dev/vn0c /img
# cp install.cfg /img/.
# umount /img
# vnconfig -u /dev/vn0c
/* (If you 'gzip mfsroot' here, you can use that for bootable mfsroot.flp for floppies) */

/* Put mfsroot in kernel so that it will read it when boot time */
# vnconfig /dev/vn0c boot.flp
# mount /dev/vn0c /img
# cp /img/kernel.gz .
# gunzip kernel.gz
# write_mfs_in_kernel -f kernel mfsroot
/* write_mfs_in_kernel can be found at /usr/src/release.  Compile it if you haven't. */

# gzip kernel
# cp kernel.gz /img/.
# umount /img
# vnconfig -u /dev/vn0c

Can you explain me this part please ?

Thank you :)
**



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4607E8C0.9050608>