From c7f10c0b18d1a31c7b6a5c3bbe2170185b5cfd31 Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 30 Apr 2002 11:31:25 +0000 Subject: boot2 does not exist on some platforms. --- release/scripts/doFS.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh index 985f7ed..da4e179 100644 --- a/release/scripts/doFS.sh +++ b/release/scripts/doFS.sh @@ -21,8 +21,12 @@ FSPROTO=$1 ; shift FSINODE=$1 ; shift FSLABEL=$1 ; shift -BOOT1=${RD}/trees/base/boot/boot1 -BOOT2=${RD}/trees/base/boot/boot2 +BOOT1="-b ${RD}/trees/base/boot/boot1" +if [ -f "${RD}/trees/base/boot/boot2" ]; then + BOOT2="-s ${RD}/trees/base/boot/boot2" +else + BOOT2="" +fi deadlock=20 @@ -50,7 +54,7 @@ dofs_vn () { dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG} - disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${VNDEVICE} ${FSLABEL} + disklabel -w -B ${BOOT1} ${BOOT2} ${VNDEVICE} ${FSLABEL} newfs -i ${FSINODE} -o space -m 1 /dev/r${VNDEVICE}c mount /dev/${VNDEVICE}c ${MNT} @@ -101,7 +105,7 @@ dofs_md () { exit 1 fi fi - disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${MDDEVICE} ${FSLABEL} + disklabel -w -B ${BOOT1} ${BOOT2} ${MDDEVICE} ${FSLABEL} newfs -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c mount /dev/${MDDEVICE}c ${MNT} -- cgit v1.1