slitaz-tools rev 480

bootfloppybox: pre-1.0 slitaz versions support for floppy set from iso
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 31 10:20:02 2010 +0200 (2010-03-31)
parents c0375bfc24c7
children 83295b6a2a4d
files tinyutils/bootfloppybox
line diff
     1.1 --- a/tinyutils/bootfloppybox	Tue Mar 30 15:56:49 2010 +0200
     1.2 +++ b/tinyutils/bootfloppybox	Wed Mar 31 10:20:02 2010 +0200
     1.3 @@ -417,7 +417,7 @@
     1.4  {
     1.5  	mkdir /tmp/iso$$
     1.6  	mount -o loop,ro $1 /tmp/iso$$
     1.7 -	rootfs="$(ls /tmp/iso$$/boot/rootfs*.gz 2> /dev/null | tail -1)"
     1.8 +	rootfs="$(ls /tmp/iso$$/boot/rootfs*z 2> /dev/null | tail -1)"
     1.9  	bzimage=/tmp/iso$$/boot/bzImage
    1.10  	if [ -z "$rootfs" -o ! -s $bzimage ]; then
    1.11  		umount -d /tmp/iso$$
    1.12 @@ -427,7 +427,7 @@
    1.13  	fi
    1.14  	mkdir -p /tmp/rootfs$$/fs
    1.15  	n=1
    1.16 -	for i in $(ls /tmp/iso$$/boot/rootfs*.gz | sort -r); do
    1.17 +	for i in $(ls /tmp/iso$$/boot/rootfs*z | sort -r); do
    1.18  		mkdir /tmp/rootfs$$/$n
    1.19  		ln -s $i /tmp/rootfs$$/$n
    1.20  		n=$(($n + 1))