1 1.1 perseant #!/bin/sh 2 1.1 perseant 3 1.1 perseant # 4 1.1 perseant # Make an LFS on TMPIM, fsck it, and mount it on TMPMP. 5 1.1 perseant # 6 1.1 perseant 7 1.1 perseant BVND=/dev/${VND} 8 1.1 perseant CVND=/dev/r${VND} 9 1.1 perseant if [ "x$NEWFS_LFS_FLAGS" = "x" ] 10 1.1 perseant then 11 1.1 perseant NEWFS_LFS_FLAGS="-B 131072 -b 4096 -f 512 -M 2" 12 1.1 perseant fi 13 1.1 perseant 14 1.1 perseant echo "*** Creating a dummy directory tree at ${TMPMP} mounted on ${TMPIM}." 15 1.1 perseant dd if=/dev/zero of=${TMPIM} count=5860 16 1.1 perseant vnconfig -v ${BVND}${RPART} ${TMPIM} 17 1.1 perseant disklabel -f ${SRCDIR}/disktab -rw ${VND} floppy288 18 1.1 perseant newfs_lfs ${NEWFS_LFS_FLAGS} ${CVND}${MPART} 19 1.1 perseant echo "*** Checking that fs made by newfs_lfs could be understood by fsck_lfs" 20 1.1 perseant fsck_lfs -n ${CVND}${MPART} || exit 1 21 1.1 perseant mkdir ${TMPMP} 22 1.1 perseant mount -t lfs ${BVND}${MPART} ${TMPMP} 23