Signed-off-by: Martin Mohring <martinmohring@linuxfoundation.org>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
cleanup_and_exit 0
fi
-#if test "ext4" = "$VMDISK_FILESYSTEM"; then
-# vm_img_mkfs='mkfs.ext4 -m 0 -q -F'
+if test "ext4" = "$VMDISK_FILESYSTEM"; then
+ vm_img_mkfs='mkfs.ext4 -m 0 -q -F'
+fi
# mkinitrd_virtio_cmd=(env rootfstype=ext4 mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk" -k $kvm_kernel -i ${kvm_initrd}-ext4-virtio)
# env rootfstype=ext4 mkinitrd -d /dev/null -m "ext4 binfmt_misc virtio_pci virtio_blk" -k $kvm_kernel -i ${kvm_initrd}-ext4
# export kvm_initrd=${kvm_initrd}-ext4
# #$vm_img_tunefs
#fi
if [ "$VM_TYPE" = 'kvm' -a -z "$RUNNING_IN_VM" -a -n "$VM_KERNEL" -a -n "$VM_INITRD" ] ; then
+
qemu_bin="$kvm_bin"
qemu_initrd="$VM_INITRD"
qemu_kernel="$VM_KERNEL"