+if [ -z "$KERNELVERSION" ] ; then
+ echo "Error: No kernel found, can not create initramfs. Exiting.">&2
+ exit 1
+fi
+
+if [ -f $target/usr/share/initramfs-tools/scripts/live ] ; then
+ $ROOTCMD update-initramfs -c -t -k $KERNELVERSION
+else
+ echo "Error: live-initramfs does not seem to be present, can not create initramfs. Exiting.">&2
+ exit 1
+fi