Date: Sat, 15 Sep 2001 16:56:07 -0700 From: Gregory Neil Shapiro <gshapiro@FreeBSD.ORG> To: freebsd-stable@FreeBSD.ORG Subject: Re: Making a bootable disk2 from a make release? Message-ID: <15267.60055.202740.574585@horsey.gshapiro.net> In-Reply-To: <20010915195149.B6535@pir.net> References: <20010915214842.F1466-100000@sanctuary.magill.unisa.edu.au> <20010915115221N.jkh@freebsd.org> <20010915134955.A18734@freeway.dcfinc.com> <20010915163220X.jkh@freebsd.org> <20010915195149.B6535@pir.net>
index | next in thread | previous in thread | raw e-mail
>> There's nothing like that, either in docs or tools. Contributions
>> always accepted. :)
>> From: "Chad R. Larson" <chad@DCFinc.com>
>> > Is there a write up or a cookbook on creating custom, bootable CDs?
Dno't know if it will help, but here is the script I use to make FreeBSD
bootable installation CD's:
#!/bin/sh
### makecd --- Create a bootable FreeBSD install CD
## Author: Gregory Neil Shapiro <gshapiro@gshapiro.net>
# Other useful commands:
#
# Make a release:
#
# make release CHROOTDIR=/src/FreeBSD/release \
# BUILDNAME=4.2-STABLE-2001-02-24 \
# CVSROOT=/src/FreeBSD/cvsrepo RELEASETAG=RELENG_4 \
# NODOC=YES NOPORTS=YES ALLLANG=no NOPORTREADMES=YES NOSRC=YES
#
# To mount/umount the ISO image:
# vnconfig /dev/vn0c /extra/gshapiro/FreeBSD.iso
# mount -r -t cd9660 /dev/vn0c /mnt
# ...
# umount /mnt
# vnconfig -u /dev/vn0c
#
# To burn the ISO file to a CD:
# cdrecord dev=0,5,0 speed=8 /extra/gshapiro/FreeBSD.iso
# Error exit
EX_UNAVAILABLE=69
# FreeBSD release area
rel=/src/FreeBSD/release/R
# Boot blocks
boot=floppies/boot.flp
# CD-ROM root
dir=cdrom/disc1
# Move into the area
cd ${rel} || exit ${EX_UNAVAILABLE}
# Read CD_VERSION from cdrom.inf
if [ ! -f ${dir}/cdrom.inf ]
then
echo "$0: ${dir}/cdrom.inf missing"
exit ${EX_UNAVAILABLE}
fi
read version < ${dir}/cdrom.inf
cd_version=${version##CD_VERSION = }
if [ "${cd_version}" = "" ]
then
echo "$0: cd_version not defined"
exit ${EX_UNAVAILABLE}
fi
# CD Parameters
appid="FreeBSD ${cd_version}"
pubid="Gregory Neil Shapiro <gshapiro@gshapiro.net>"
# Where to save the backup
iso=/extra/gshapiro/FreeBSD.iso
# Create the ISO file
/usr/local/bin/mkisofs -A "${appid}" -P "${pubid}" -p "${pubid}" \
-o ${iso} -b ${boot} -R -J ${dir}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15267.60055.202740.574585>
