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
This commit is contained in:
Peter Grehan 2004-08-18 11:10:05 +00:00
parent 3f11b7d156
commit 8e38e74359
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133951

View File

@ -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}