2 次代碼提交 e1462e26e8 ... 814696bcf7

作者 SHA1 備註 提交日期
  Dima Krasner 814696bcf7 Emptied /var/log 6 年之前
  Dima Krasner bf7c521a94 Made /tmp a tmpfs 6 年之前
共有 2 個文件被更改,包括 5 次插入1 次删除
  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