summaryrefslogtreecommitdiffstats
path: root/infest/etc
diff options
context:
space:
mode:
authorkrebs <krebs@UTART>2011-05-18 11:01:23 +0200
committerkrebs <krebs@UTART>2011-05-18 11:01:23 +0200
commit86cf52c3fdcfe6cf7e4827eb77561f8f1854327a (patch)
tree9c37aff37193629758a6e89a21e323cc31d8996f /infest/etc
parent023130e949d6287404c80e4e4fc75e417743af33 (diff)
added tmpfs for /tmp and /var/log in infest/etc
Diffstat (limited to 'infest/etc')
-rwxr-xr-xinfest/etc12
1 files changed, 12 insertions, 0 deletions
diff --git a/infest/etc b/infest/etc
index 0ddf4150..78ce8d06 100755
--- a/infest/etc
+++ b/infest/etc
@@ -32,3 +32,15 @@ echo 'krebs:x:0:' >>$f
for i in etc/*; do
cat $i > /$i
done
+
+# TMPFS for tmp and log
+
+if [ ! "`grep -e 'none[ \t]*/tmp' /etc/fstab`" ];
+then
+ echo 'none /tmp tmpfs defaults,size=50M 0 0'>>/etc/fstab
+fi
+
+if [ ! "`grep -e 'none[ \t]*/var/log' /etc/fstab`" ];
+then
+ echo 'none /var/log tmpfs defaults,size=50M 0 0'>>/etc/fstab
+fi