tazlito rev 194

tazlito/writeiso: use relative path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 19 09:56:30 2010 +0100 (2010-12-19)
parents eafe7213ce8e
children a395e46e36ed
files tazlito
line diff
     1.1 --- a/tazlito	Sat Dec 18 18:05:31 2010 +0100
     1.2 +++ b/tazlito	Sun Dec 19 09:56:30 2010 +0100
     1.3 @@ -1040,11 +1040,11 @@
     1.4  	done
     1.5  	
     1.6  	# Remove tazpkg files and tmp files
     1.7 -	rm -rf $1/var/lib/tazpkg/installed*
     1.8 +	rm -rf $1/var/lib/tazpkg/installed* $1/tmp $1/var/tmp
     1.9  	rm -f $1/var/lib/tazpkg/*packages* $1/var/lib/tazpkg/files.list.lzma \
    1.10  		$1/var/lib/tazpkg/mirror*  $1/var/cache/*/* \
    1.11  		$1/var/lock/* $1/var/log/* $1/var/run/* $1/var/run/*/* \
    1.12 -		$1/var/tmp/* $1/var/lib/*  $1/var/lib/dbus/* 2> /dev/null
    1.13 +		$1/var/lib/*  $1/var/lib/dbus/* 2> /dev/null
    1.14  	
    1.15  	# Cleanup directory tree
    1.16  	cd $1
    1.17 @@ -2102,11 +2102,12 @@
    1.18  		esac
    1.19  		status
    1.20  		
    1.21 +		cd /
    1.22  		# Create list of files including default user files since it is defined in /etc/passwd
    1.23  		# and some new users might have been added.
    1.24 -		find /bin /etc /init /sbin /var /dev /lib /root /usr /home >/tmp/list
    1.25 +		find bin etc init sbin var dev lib root usr home >/tmp/list
    1.26  
    1.27 -		for dir in /proc /sys /tmp /mnt /media /media/cdrom /media/flash /media/usbdisk
    1.28 +		for dir in proc sys tmp mnt media media/cdrom media/flash media/usbdisk
    1.29  		do
    1.30  			echo $dir >>/tmp/list
    1.31  		done
    1.32 @@ -2116,6 +2117,7 @@
    1.33  		rm -f /tmp/rootfs
    1.34  		write_initramfs &
    1.35  		sleep 2
    1.36 +		cd - > /dev/null
    1.37  		echo -en "\nFilesystem size:"
    1.38  		while [ ! -f /tmp/rootfs ]
    1.39  		do