summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-05-19 15:34:00 +0000
committerphk <phk@FreeBSD.org>2005-05-19 15:34:00 +0000
commitbb1e88d3de07d6893e02ed206ebd0dce724a4577 (patch)
tree8094a0dd1887be2362371f09ecf89b9b72422ca7 /tools
parentdb59b95e39e4f7b1f0a99221f88fab1d5fc6f15e (diff)
downloadFreeBSD-src-bb1e88d3de07d6893e02ed206ebd0dce724a4577.zip
FreeBSD-src-bb1e88d3de07d6893e02ed206ebd0dce724a4577.tar.gz
Save space by using -b 4096 -f 512 for newfs.
Retain -i 8192 to avoid wasting inodes.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/nanobsd/i386.diskimage6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/tools/nanobsd/i386.diskimage b/tools/tools/nanobsd/i386.diskimage
index 6ede3d8..01e1b5c 100644
--- a/tools/tools/nanobsd/i386.diskimage
+++ b/tools/tools/nanobsd/i386.diskimage
@@ -27,6 +27,8 @@ WD=$8
IMG=$9
CFGMASTER=${10}
+NEWFSPARAM="-b 4096 -f 512 -i 8192"
+
TMPFILE0=`mktemp -t nanobsd`
TMPFILE1=`mktemp -t nanobsd`
TMPMNT=`mktemp -d -t nanobsd`
@@ -84,7 +86,7 @@ bsdlabel -w -B ${MD}s1
# Prepare primary root slice
-newfs ${PRIROOTLABEL} -O1 -U ${MD}s1a
+newfs ${NEWFSPARAM} ${PRIROOTLABEL} -O1 -U ${MD}s1a
mount /dev/${MD}s1a ${TMPMNT}
(cd ${WD} && find . -print | cpio -dump ${TMPMNT}) || true
make_fstab ${PRIROOTSLICE} ${TMPMNT}
@@ -103,7 +105,7 @@ umount ${TMPMNT}
# Prepare configuration slice
-newfs ${CFGLABEL} -O1 -U ${MD}s3
+newfs ${NEWFSPARAM} ${CFGLABEL} -O1 -U ${MD}s3
if [ -d "${CFGMASTER}" ]; then
mount /dev/${MD}s3 ${TMPMNT}
( cd ${CFGMASTER} && find . -print | cpio -dumpl ${TMPMNT} )
OpenPOWER on IntegriCloud