From f6fba8512c9869d7a5219a1881887598a5425d00 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 13 Jan 1996 23:31:46 +0000 Subject: Shrink BOOTMFS kernel further. Make doFS.sh more intelligent. boot4.flp should work fine as far as I can tell. --- release/scripts/doFS.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh index eade2d1..1c09de9 100644 --- a/release/scripts/doFS.sh +++ b/release/scripts/doFS.sh @@ -48,11 +48,11 @@ do -s ${RD}/trees/bin/usr/mdec/bootfd \ /dev/r${VNDEVICE} ${FSLABEL} - newfs -u 0 -t 0 -i ${FSINODE} -m 0 -T ${FSLABEL} /dev/r${VNDEVICE}a + newfs -u 0 -c 8 -t 0 -i ${FSINODE} -m 0 -T ${FSLABEL} /dev/r${VNDEVICE}a mount /dev/${VNDEVICE}a ${MNT} - ( cd ${FSPROTO} && find . -print | cpio -dump ${MNT} ) + ( set -e && cd ${FSPROTO} && find . -print | cpio -dump ${MNT} ) set `df -i /mnt | tail -1` @@ -69,11 +69,25 @@ do echo ">>> Filesystem is ${FSSIZE} K, $4 left" echo ">>> ${FSINODE} bytes/inode, $7 left" + echo ">>> `expr ${FSSIZE} \* 1024 / ${FSINODE}`" + if [ $4 -gt 64 ] ; then + echo "Reducing size" + FSSIZE=`expr ${FSSIZE} - $4 + 8` + continue + fi + if [ $7 -gt 64 ] ; then + echo "Increasing bytes per inode" + FSINODE=`expr ${FSINODE} + 8192` + continue + fi if [ $4 -gt 8 ] ; then - FSSIZE=`expr ${FSSIZE} - $4 + 7` + echo "Reducing size" + FSSIZE=`expr ${FSSIZE} - 4` + FSINODE=`expr ${FSINODE} - 1024` continue fi if [ $7 -gt 32 ] ; then + echo "Increasing bytes per inode" FSINODE=`expr ${FSINODE} + 8192` continue fi -- cgit v1.1