diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-04-30 11:31:25 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-04-30 11:31:25 +0000 |
| commit | 581102328a607c4fe381c6b17684f5fb57ebbfd4 (patch) | |
| tree | 95a97f8db66978ada205fe8ffd7f241eb891d19a /release/scripts | |
| parent | b23e18d6889e7a160b6607d9e5a6b1bdac72204f (diff) | |
Notes
Diffstat (limited to 'release/scripts')
| -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 985f7ed96d59..da4e179b131c 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} |
