boot2 does not exist on some platforms.
This commit is contained in:
parent
b23e18d688
commit
581102328a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95791
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user