On 04/02/2014 12:50, Steven Chamberlain wrote: > I'll try to find a way to measure where most space is being > used up.
(after a succesful install) # /target/usr/bin/du -hs lib sbin usr var 13M lib 2.8M sbin 4.3M usr 22M var (var space is taken by cdebconf templates, which I think is basically a lot of text translated to a lot of languages) How about moving /usr and /var to tmpfs then? See attachment. -- Robert Millan
diff --git a/src/sbin/init-kfreebsd b/src/sbin/init-kfreebsd index e8ea04d..5bd8252 100755 --- a/src/sbin/init-kfreebsd +++ b/src/sbin/init-kfreebsd @@ -21,6 +21,15 @@ mount /proc mount /sys ln -s /var/run/log /dev/log +# Avoid hitting MFSROOT_LIMIT on i386 +for i in usr var ; do + mv /${i} /${i}.old + mkdir /${i} + mount -t tmpfs tmpfs /${i} + mv /${i}.old/* /${i}/ + rmdir /${i}.old +done + # Get all kernel parameters that can be exported as environment variables envvars="$(kenv | egrep '^[-_/[:alnum:]]+=".*"$' || true)"