[Zrouter-src] ZRouter.org: push to ZRouter profiles/SMALL_/files/etc/rc.d/moun...
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Fri May 4 10:09:35 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/1dc8c70afbe5
changeset: 401:1dc8c70afbe5
user: Aleksandr Rybalko <ray at ddteam.net>
date: Fri May 04 12:50:54 2012 +0300
description:
* Reduce /etc ramfs to 1M.
* Create required subdirs from list.
TODO: get list of required subdirs from external variable.
diffstat:
profiles/SMALL_/files/etc/rc.d/mountcritlocal | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (25 lines):
diff -r 30ccc9a1b978 -r 1dc8c70afbe5 profiles/SMALL_/files/etc/rc.d/mountcritlocal
--- a/profiles/SMALL_/files/etc/rc.d/mountcritlocal Fri May 04 12:49:09 2012 +0300
+++ b/profiles/SMALL_/files/etc/rc.d/mountcritlocal Fri May 04 12:50:54 2012 +0300
@@ -12,16 +12,15 @@
{
# XXX: check TMPFS again
# XXX: get useful size: small for /etc or big for upgrade
- md=`/sbin/mdconfig -a -t malloc -s 10m`
+ md=`/sbin/mdconfig -a -t malloc -s 1m`
newfs -b 4096 -f 512 -n -o space /dev/${md} > /dev/null
mount /dev/${md} /tmp
mkdir -p /tmp/etc
- mkdir -p /tmp/var/empty
- mkdir -p /tmp/var/log
- mkdir -p /tmp/var/run
- mkdir -p /tmp/var/spool/lock
- mkdir -p /tmp/var/tmp
+ for dir in account at audit cache db empty lib log mail msgs preserve \
+ run spool/lock tmp; do
+ mkdir -p /tmp/var/${dir}
+ done
touch /tmp/var/log/all.log
mount_unionfs /tmp/etc /etc
More information about the Zrouter-src
mailing list