Making Customized Bootable FreeBSD

Olivier Regnier oregnier at steelbox.org
Mon Mar 26 15:37:14 UTC 2007


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 :)
**


More information about the freebsd-questions mailing list