tazlito rev 277

Break aufs install loop (thanks mojo)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 14 08:22:55 2012 +0200 (2012-04-14)
parents d38f14b8dc35
children 90227c8c456c
files tazlito
line diff
     1.1 --- a/tazlito	Fri Apr 13 07:34:41 2012 +0200
     1.2 +++ b/tazlito	Sat Apr 14 08:22:55 2012 +0200
     1.3 @@ -724,6 +724,14 @@
     1.4  	urliso="mirror.slitaz.org mirror.switch.ch/ftp/mirror/slitaz \
     1.5  download.tuxfamily.org/slitaz slitaz.c3sl.ufpr.br"
     1.6  	version=$(ls $TMP_DIR/iso/boot/vmlinuz-* | sed 's/.*vmlinuz-//')
     1.7 +	if [ -z "$version" ]; then
     1.8 +		cat <<EOT
     1.9 +Can't find the kernel version.
    1.10 +No file /boot/vmlinuz-<version> in ISO image.
    1.11 +Abort.
    1.12 +EOT
    1.13 +		exit 1
    1.14 +	fi
    1.15  	[ -s /usr/share/boot/busybox-static ] || install_package busybox-static
    1.16  	need_lib=false
    1.17  	mkdir -p $TMP_DIR/initfs/bin $TMP_DIR/initfs/dev $TMP_DIR/initfs/lib \