summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-01-16 07:24:38 +0000
committerjhb <jhb@FreeBSD.org>2002-01-16 07:24:38 +0000
commit0a1ce0426b0da5fb3c966c69d763574f91ea520b (patch)
tree166f9116438667daf8d65b774e6fe27e20fd4cf7 /release/scripts
parent1ae1e4e3f2015a0dd28a67d111327bf8b681ba37 (diff)
downloadFreeBSD-src-0a1ce0426b0da5fb3c966c69d763574f91ea520b.zip
FreeBSD-src-0a1ce0426b0da5fb3c966c69d763574f91ea520b.tar.gz
Don't print out 0xaa55 at the end of a vnconfig disk and use the
"canonical" disk name when calling disklabel so that disklabel auto works.
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/doFS.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index ab02f9f..12aceaa 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -45,12 +45,9 @@ dofs_vn () {
vnconfig -u /dev/r${VNDEVICE} 2>/dev/null || true
dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null
- # this suppresses the `invalid primary partition table: no magic'
- awk 'BEGIN {printf "%c%c", 85, 170}' |\
- dd of=${FSIMG} obs=1 seek=510 conv=notrunc 2>/dev/null
vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG}
- disklabel -Brw /dev/r${VNDEVICE} ${FSLABEL}
+ disklabel -Brw ${VNDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 1 /dev/r${VNDEVICE}c
mount /dev/${VNDEVICE}c ${MNT}
OpenPOWER on IntegriCloud