slitaz-tools rev 732
bootfloppybox: fix cmdlime
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 12 11:03:44 2012 +0200 (2012-04-12) |
parents | c62fda977e2b |
children | f1ba248d0b54 |
files | tinyutils/bootfloppybox |
line diff
1.1 --- a/tinyutils/bootfloppybox Tue Apr 10 12:08:48 2012 +0200 1.2 +++ b/tinyutils/bootfloppybox Thu Apr 12 11:03:44 2012 +0200 1.3 @@ -2,7 +2,7 @@ 1.4 # 1.5 # Gtkdialog box for the mount command. Part of SliTaz tools. 1.6 # 1.7 -VERSION=20100701 1.8 +VERSION=20120412 1.9 1.10 # Check if user is root. 1.11 check_root() 1.12 @@ -659,7 +659,7 @@ 1.13 base=$(($base + 100)) 1.14 shift 2 1.15 done | buildinit /tmp/rootfs$$/fs 1.16 - cmdline="$(grep append /tmp/iso$$/boot/isolinux/isolinux.cfg | tail -n 1 | sed 's/.*gz //')" 1.17 + cmdline="$(grep 'append *initrd' /tmp/iso$$/boot/isolinux/isolinux.cfg | tail -n 1 | sed 's/.*gz //')" 1.18 ( cd /tmp/rootfs$$/fs ; find | cpio -o -H newc ) | lzma e /tmp/rootfs$$/rootfs -si 1.19 echo "Creating first stage boot floppies..." 1.20 floppyset $bzimage /tmp/rootfs$$/rootfs "$cmdline"