tazlito rev 203
tazlito/mkloram: fix getarg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Dec 25 12:30:02 2010 +0100 (2010-12-25) |
parents | e5f6c7526cf2 |
children | 18f3e47601dc |
files | tazlito |
line diff
1.1 --- a/tazlito Thu Dec 23 17:43:05 2010 +0100 1.2 +++ b/tazlito Sat Dec 25 12:30:02 2010 +0100 1.3 @@ -737,7 +737,7 @@ 1.4 getarg() 1.5 { 1.6 grep -q " \$1=" /proc/cmdline || return 1 1.7 - eval \$2=\$(sed 's/.* loram=\\([^ ]*\\).*/\\1/' < /proc/cmdline) 1.8 + eval \$2=\$(sed "s/.* \$1=\\\\([^ ]*\\\\).*/\\\\1/" < /proc/cmdline) 1.9 return 0 1.10 } 1.11 1.12 @@ -968,6 +968,9 @@ 1.13 mv $TMP_DIR/initfs.gz $TMP_DIR/loramiso/boot/rootfs.gz 1.14 mv $TMP_DIR/rootfs*.gz $TMP_DIR/loramiso 1.15 unmeta_boot 1.16 + VOLUM_NAME="SliTaz_LoRAM_CDROM" 1.17 + sed -i "s/root=/loram=LABEL=$VOLUM_NAME &/" \ 1.18 + $TMP_DIR/loramiso/boot/isolinux/*.cfg 1.19 create_iso $OUTPUT $TMP_DIR/loramiso 1.20 } 1.21