tazusb rev 175
fix kernel panic with wtmp / daemon.log > ~16k
author | ^^^ <psychomaniak@xakep.ru> |
---|---|
date | Mon Apr 06 19:31:31 2015 +0000 (2015-04-06) |
parents | 66da031e3947 |
children | a68841719cc4 |
files | tazusb |
line diff
1.1 --- a/tazusb Sat Apr 04 22:54:48 2015 +0300 1.2 +++ b/tazusb Mon Apr 06 19:31:31 2015 +0000 1.3 @@ -466,6 +466,8 @@ 1.4 status 1.5 1.6 # Clean-up files by default 1.7 + mv -f /var/log/wtmp /var/log/.wtmp 1.8 + echo "" > /var/log/wtmp 1.9 echo "" > /etc/udev/rules.d/70-persistent-net.rules 1.10 echo "" > /etc/udev/rules.d/70-persistant-cd.rules 1.11 1.12 @@ -484,7 +486,7 @@ 1.13 done 1.14 sed -i '/^\/var\/run\/.*pid$/d' /tmp/list 1.15 1.16 - for removelog in boot messages dmesg; do 1.17 + for removelog in auth boot messages dmesg daemon utmp slim; do 1.18 sed -i "\/var\/log\/$removelog/d" /tmp/list 1.19 done 1.20 1.21 @@ -524,6 +526,7 @@ 1.22 gettext "Root filesystem size: $size"; echo "" 1.23 echo "" 1.24 echo "----" 1.25 + mv -f /var/log/.wtmp /var/log/wtmp 1.26 gettext "ENTER to continue..."; read i 1.27 ;; 1.28 format)