-FILE=$(ls -1 $target/boot/vmlinuz-* 2>/dev/null| sort -r | head -1)
-KERNELVERSION=$(echo "${FILE##$target/boot/vmlinuz-}")
-
-if [ -z "$KERNELVERSION" ] ; then
- echo "Error: No kernel found, can not create initramfs. Exiting.">&2
+if ! [ -f $target/usr/share/initramfs-tools/scripts/live ] ; then
+ echo "Error: live-boot/-initramfs does not seem to be present, can not create initramfs. Exiting.">&2