tazlito rev 374 5.2.8

Do not ask about log
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Apr 04 22:56:40 2015 +0300 (2015-04-04)
parents d5fb4748a114
children d85b13eca900
files tazlito
line diff
     1.1 --- a/tazlito	Sun Mar 29 15:24:25 2015 +0000
     1.2 +++ b/tazlito	Sat Apr 04 22:56:40 2015 +0300
     1.3 @@ -2294,21 +2294,6 @@
     1.4  		rm /var/cache/tazpkg/* -r -f
     1.5  		rm -rf /home/slitaz/distro
     1.6  
     1.7 -		if [ -f /var/log/boot.log.0 ] || [ -f messages.0 ]; then
     1.8 -			echo "Do you wish to keep LOG files in rootfs ? "
     1.9 -			echo -n "Press ENTER to remove or answer (No|yes|exit): "
    1.10 -			read anser
    1.11 -		case $anser in
    1.12 -			e|E|"exit"|Exit)
    1.13 -				exit 0 ;;
    1.14 -			y|Y|yes|Yes)
    1.15 -				echo "Keeping current logs... KERNEL PANIC possible.";;
    1.16 -			*)
    1.17 -				RmLogs='Y' ;;
    1.18 -		esac
    1.19 -			status
    1.20 -		fi
    1.21 -
    1.22  		# Optionally remove sound card selection and screen resolution.
    1.23  		echo "Do you wish to remove the sound card and screen configs ? "
    1.24  		echo -n "Press ENTER to keep or answer (No|yes|exit): "
    1.25 @@ -2363,11 +2348,9 @@
    1.26  
    1.27  		sed -i '\/var\/run\/.*pid$/d' /tmp/list
    1.28  
    1.29 -		if [ $RmLogs == Y ]; then
    1.30 -			for removeit in boot messages slim old; do
    1.31 -				sed -i "\/var\/log\/$removeit/d" /tmp/list
    1.32 -			done
    1.33 -		fi
    1.34 +		for removelog in auth boot messages dmesg daemon slim .*old Xorg; do
    1.35 +			sed -i "\/var\/log\/$removelog/d" /tmp/list
    1.36 +		done
    1.37  
    1.38  		# Generate initramfs with specified compression and display rootfs
    1.39  		# size in realtime.