1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-20 15:43:16 +00:00

Add a -b option to make the resulting CDROM image bootable

(requires new mkisofs 1.10 port).
This commit is contained in:
Jordan K. Hubbard 1997-04-13 06:43:58 +00:00
parent 5801796846
commit 1c662397c4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24860

View File

@ -7,6 +7,13 @@
# makecdfs FreeBSD-2.1.5 /a/cdrom-dist /a/cdimage.cd0 "Walnut Creek CDROM \
# 1-510-674-0783 FAX 1-510-674-0821"
if [ "$1" = "-b" ]; then
bootable="-b floppies/boot.flp -c floppies/boot.catalog"
shift
else
bootable=""
fi
if [ $# -lt 4 ]; then
echo "usage: $0 \"cd-title\" input-tree output-file \"copyright\""
elif [ ! -d $2 ]; then
@ -16,5 +23,6 @@ else
tree=$1; shift
outfile=$1; shift
copyright="$*"
mkisofs -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree
mkisofs.new $bootable -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree
# mkisofs -a -d -N -D -R -T -V "$title" -P "$copyright" -o $outfile $tree
fi