slitaz-tools rev 650

bootfloppybox: add installer in slitaz boot floppies (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 10 22:29:10 2011 +0200 (2011-07-10)
parents 5e5779810922
children 04d4b7ac2c1b
files tinyutils/bootfloppybox
line diff
     1.1 --- a/tinyutils/bootfloppybox	Sun Jul 10 21:42:10 2011 +0200
     1.2 +++ b/tinyutils/bootfloppybox	Sun Jul 10 22:29:10 2011 +0200
     1.3 @@ -271,7 +271,17 @@
     1.4  insmod /lib/modules/*/kernel/drivers/block/floppy.ko.gz 2> /dev/null
     1.5  # loram may put floppy.ko.gz module in /lib
     1.6  insmod /lib/floppy.ko.gz 2> /dev/null
     1.7 -if blkid | grep -q 'TYPE="ext'; then
     1.8 +if [ ! -x /sbin/blkid ]; then
     1.9 +	cat <<EOT
    1.10 +
    1.11 +You can preinstall SliTaz in an ext3 partition with this floppy set.
    1.12 +
    1.13 +Simply enter the device name (/dev/XXXX) to create the slitaz/install.sh or
    1.14 +leave it blank to skip :
    1.15 +EOT
    1.16 +	read -t 60 device < /dev/tty0
    1.17 +	[ -n "\$device" ] && mount \$device /mnt && mkdir /mnt/slitaz
    1.18 +elif blkid | grep -q 'TYPE="ext'; then
    1.19  	cat <<EOT
    1.20  
    1.21  You can preinstall SliTaz in one of these ext3 partition: