summaryrefslogtreecommitdiffstats
path: root/release/scripts
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-08-18 11:10:05 +0000
committergrehan <grehan@FreeBSD.org>2004-08-18 11:10:05 +0000
commit0ed2b9b4ea727a692f144b5b4af3a20b8af7cd91 (patch)
treee9dd74a8f82ee0c108cc38cb3183cd03285bfbb4 /release/scripts
parent2c963bb5aacbf973ff6bc991671998cd524baa68 (diff)
downloadFreeBSD-src-0ed2b9b4ea727a692f144b5b4af3a20b8af7cd91.zip
FreeBSD-src-0ed2b9b4ea727a692f144b5b4af3a20b8af7cd91.tar.gz
Allow MFS images to be built without a disklabel for releases
that don't require one i.e. PPC. Reviewed by: ru Submitted by: ssouhlal
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/doFS.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index 24c4fbd..3f51d52 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -73,10 +73,14 @@ dofs_md () {
trap "umount ${MNT}; mdconfig -d -u ${MDDEVICE}" EXIT
- ${DISKLABEL} ${MACHINE} -w ${BOOT} ${MDDEVICE} ${FSLABEL}
- newfs -O1 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c
-
- mount /dev/${MDDEVICE}c ${MNT}
+ if [ "x${DISKLABEL}" != "x" ] ; then
+ ${DISKLABEL} ${MACHINE} -w ${BOOT} ${MDDEVICE} ${FSLABEL}
+ newfs -O1 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c
+ mount /dev/${MDDEVICE}c ${MNT}
+ else
+ newfs -O1 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}
+ mount /dev/${MDDEVICE} ${MNT}
+ fi
}
rm -f ${FSIMG}
OpenPOWER on IntegriCloud