diff options
author | phk <phk@FreeBSD.org> | 1996-01-14 19:10:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-01-14 19:10:16 +0000 |
commit | 4b351aa8eba14358493845cce5a85905e3a211e3 (patch) | |
tree | c97dba156ba924e17da4b00dc0a3dfcb646a571b /release/doFS.sh | |
parent | d1eb245b0ad962a7359d05c2bae5afe05ec72e85 (diff) | |
download | FreeBSD-src-4b351aa8eba14358493845cce5a85905e3a211e3.zip FreeBSD-src-4b351aa8eba14358493845cce5a85905e3a211e3.tar.gz |
I belive this works now.
Diffstat (limited to 'release/doFS.sh')
-rw-r--r-- | release/doFS.sh | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/release/doFS.sh b/release/doFS.sh index 1c09de9..4280ca0 100644 --- a/release/doFS.sh +++ b/release/doFS.sh @@ -1,5 +1,5 @@ : -set -e +set -ex VNDEVICE=vn0 @@ -28,27 +28,25 @@ do vnconfig -s labels -c /dev/r${VNDEVICE} fs-image - if [ "$FSLABEL" = "minimum" ] ; then - sed '/^minimum:/,$d' /etc/disktab > /etc/disktab.tmp - cat /etc/disktab.tmp > /etc/disktab - rm -f /etc/disktab.tmp - ( - a=`expr ${FSSIZE} \* 2` - echo - echo "minimum:ty=mfs:se#512:nt#1:rm#300:\\" - echo " :ns#$a:nc#1:\\" - echo " :pa#$a:oa#0:ba#4096:fa#512:\\" - echo " :pc#$a:oc#0:bc#4096:fc#512:" - echo - ) >> /etc/disktab - fi + sed '/^minimum:/,$d' /etc/disktab > /etc/disktab.tmp + cat /etc/disktab.tmp > /etc/disktab + rm -f /etc/disktab.tmp + ( + a=`expr ${FSSIZE} \* 2` + echo + echo "minimum:ty=mfs:se#512:nt#1:rm#300:\\" + echo " :ns#$a:nc#1:\\" + echo " :pa#$a:oa#0:ba#4096:fa#512:\\" + echo " :pc#$a:oc#0:bc#4096:fc#512:" + echo + ) >> /etc/disktab disklabel -w -r -B \ -b ${RD}/trees/bin/usr/mdec/fdboot \ -s ${RD}/trees/bin/usr/mdec/bootfd \ - /dev/r${VNDEVICE} ${FSLABEL} + /dev/r${VNDEVICE} minimum - newfs -u 0 -c 8 -t 0 -i ${FSINODE} -m 0 -T ${FSLABEL} /dev/r${VNDEVICE}a + newfs -u 0 -c 8 -t 0 -i ${FSINODE} -m 0 -T minimum /dev/r${VNDEVICE}a mount /dev/${VNDEVICE}a ${MNT} |