Lines 35-42
NAME=$1; shift
Link Here
|
35 |
|
35 |
|
36 |
# Create an ISO image |
36 |
# Create an ISO image |
37 |
publisher="The FreeBSD Project. http://www.FreeBSD.org/" |
37 |
publisher="The FreeBSD Project. http://www.FreeBSD.org/" |
|
|
38 |
dirs="etc var" |
39 |
for d in $dirs; do |
40 |
mkdir -p $1/conf/base/$d/ |
41 |
echo "30720" > $1/conf/base/$d/md_size |
42 |
tar cf - -C $1/$d/ . | tar xpvf - -C $1/conf/base/$d/ |
43 |
done |
44 |
: > $1/etc/diskless |
38 |
echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab |
45 |
echo "/dev/iso9660/$LABEL / cd9660 ro 0 0" > $1/etc/fstab |
39 |
makefs -t cd9660 -B be -o rockridge -o label="$LABEL" -o publisher="$publisher" ${NAME}.tmp $* |
46 |
makefs -t cd9660 -B be -o rockridge -o label="$LABEL" -o publisher="$publisher" ${NAME}.tmp $* |
|
|
47 |
chflags -R 0 $1/conf |
48 |
rm -Rf $1/conf |
40 |
rm $1/etc/fstab |
49 |
rm $1/etc/fstab |
41 |
|
50 |
|
42 |
if [ "x$BOPT" != "x-b" ]; then |
51 |
if [ "x$BOPT" != "x-b" ]; then |