tazusb rev 173

writefs: Remove only log files which confirmed as reason of kernel panic
(exceed size limits an fail to rename/overwrite; N-th boot-writefs-boot cycle)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Apr 04 22:54:00 2015 +0300 (2015-04-04)
parents e7c0b341964e
children 66da031e3947
files tazusb
line diff
     1.1 --- a/tazusb	Fri Dec 05 09:47:22 2014 +0100
     1.2 +++ b/tazusb	Sat Apr 04 22:54:00 2015 +0300
     1.3 @@ -484,6 +484,10 @@
     1.4  		done
     1.5  		sed -i '/^\/var\/run\/.*pid$/d' /tmp/list
     1.6  
     1.7 +		for removelog in boot messages dmesg; do
     1.8 +			sed -i "\/var\/log\/$removelog/d" /tmp/list
     1.9 +		done
    1.10 +
    1.11  		# Generate initramfs with specified compression
    1.12  		if [ "$COMPRESSION" = "lzma" ]; then
    1.13  			gettext "Creating rootfs.gz with lzma compression... "