diff options
author | ru <ru@FreeBSD.org> | 2002-04-30 11:31:25 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-30 11:31:25 +0000 |
commit | c7f10c0b18d1a31c7b6a5c3bbe2170185b5cfd31 (patch) | |
tree | 95a97f8db66978ada205fe8ffd7f241eb891d19a | |
parent | 6ff9e30a597acd213e6329b7e9d6587183e93095 (diff) | |
download | FreeBSD-src-c7f10c0b18d1a31c7b6a5c3bbe2170185b5cfd31.zip FreeBSD-src-c7f10c0b18d1a31c7b6a5c3bbe2170185b5cfd31.tar.gz |
boot2 does not exist on some platforms.
-rw-r--r-- | release/scripts/doFS.sh | 12 |
1 files changed, 8 insertions, 4 deletions
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} |