sed 's/\s.*//' | sort -h ) )
echo "** Please select kernel **"
select KERNEL in "${KERNELS[@]}" ; do [ -n "$KERNEL" ] && break ; done
+ VERSION=${KERNEL#linux-image-}
+ VERSION=${VERSION%-unsigned}
chroot "$FS" apt-get install -y $KERNEL
- chroot "$FS" depmod -a ${KERNEL#linux-image-}
+ chroot "$FS" depmod -a $VERSION
chroot "$FS" apt-get install -y busybox-static debootstrap
touch "$FS"/usr/bin{linuxrc,init} # block these
rm $TMPIMG
mcopy -i "$IMG@@1048576" -s $TMP/* ::/
[ -z "$SUDO_USER" ] || chown $SUDO_USER: "$IMG"
-dd if=FS.sqfs of=$IMG seek=${PART[3]} conv=notrunc status=none
+
+dd if=FS.sqfs of=$IMG seek=${PART[2]} conv=notrunc status=none
#============================================================
# Final syslinux bios boot image mastering