2 Commits e1462e26e8 ... 814696bcf7

Author SHA1 Message Date
  Dima Krasner 814696bcf7 Emptied /var/log 6 years ago
  Dima Krasner bf7c521a94 Made /tmp a tmpfs 6 years ago
2 changed files with 5 additions and 1 deletions
  1. 4 1
      devsus.sh
  2. 1 0
      fstab

+ 4 - 1
devsus.sh

@@ -153,7 +153,7 @@ echo "127.0.0.1 devsus" >> $outmnt/etc/hosts
 # block malware and advertising domains
 cat hosts >> $outmnt/etc/hosts
 
-rm -f $outmnt/etc/resolv.conf
+rm -f $outmnt/etc/resolv.conf $outmnt/var/log/*log $outmnt/var/log/dmesg $outmnt/var/log/fsck/* $outmnt/var/log/apt/*
 
 # allow unprivileged users to write to /sys/devices/platform/backlight/backlight/backlight/brightness
 install -m 644 99-brightness.rules $outmnt/etc/udev/rules.d/99-brightness.rules
@@ -161,6 +161,9 @@ install -m 644 99-brightness.rules $outmnt/etc/udev/rules.d/99-brightness.rules
 # give ath9k_htc devices a random MAC address
 install -m 644 98-mac.rules $outmnt/etc/udev/rules.d/98-mac.rules
 
+# make /tmp a tmpfs, to reduce disk I/O
+install -m 644 fstab $outmnt/etc/fstab
+
 install -m 644 skel/.xbindkeysrc $outmnt/etc/skel/.xbindkeysrc
 install -D -m 644 skel/.config/htop/htoprc $outmnt/etc/skel/.config/htop/htoprc
 install -m 744 skel/.xinitrc $outmnt/etc/skel/.xinitrc

+ 1 - 0
fstab

@@ -0,0 +1 @@
+tmpfs	/tmp	tmpfs	noexec,nodev,nosuid,size=10%,mode=1777	0	0