tazinst rev 56
Try to fix 64 bits kernel install... (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 21 22:07:52 2015 +0200 (2015-04-21) |
parents | deb2ba5096fc |
children | 02a05940764b |
files | tazinst |
line diff
1.1 --- a/tazinst Mon Apr 13 19:14:06 2015 +0100 1.2 +++ b/tazinst Tue Apr 21 22:07:52 2015 +0200 1.3 @@ -1807,15 +1807,14 @@ 1.4 install_kernel() 1.5 { 1.6 if [ -d /$TARGET_ROOT/lib/modules ]; then 1.7 - KERNEL=$(ls /$TARGET_ROOT/lib/modules | tail -1) 1.8 - KERNEL="vmlinuz-$KERNEL" 1.9 + KERNEL="vmlinuz-$(ls /$TARGET_ROOT/lib/modules | tail -1)" 1.10 else 1.11 KERNEL="vmlinuz-$(uname -r)" 1.12 log "$(gettext "Kernel name not found, falling back to:") $(uname -r)" 1.13 fi 1.14 mkdir -p $TARGET_ROOT/boot || error8 1.15 for i in $SOURCE_ROOT/boot/bzImage* ; do 1.16 - cp $i $TARGET_ROOT/boot/${KERNEL/vmlinuz-/vmlinuz${i#*bzImage}-} 1.17 + cp $i $TARGET_ROOT/boot/${KERNEL%slitaz*}slitaz${i#*bzImage} 1.18 done 1.19 log "$(gettext "install_kernel:") $KERNEL" 1.20 }