systemd
util-linux
"
+elif [[ "$distro" =~ ^debian- ]]; then
+ packages="
+ bash
+ coreutils
+ grep
+ qemu-system-x86
+ sgabios
+ sysvinit-core
+ util-linux
+ "
else
echo "$0: $distro not known. You need to edit this script to add support for this distro."
exit 1
# Add the kernel and initrd to the image.
# We have to do this here, AFTER the build step, because we don't
# have the kernel & initrd before this.
-echo "Adding kernel and initrd to the disk image ..."
-"$guestfish" --format=raw -a tmp-appliance.d/root -m /dev/sda <<EOF
+"$guestfish" --format=raw -a tmp-appliance.d/root -m /dev/sda <<'EOF'
+ echo "Adding kernel and initrd to the disk image ..."
upload tmp-appliance.d/kernel /kernel
upload tmp-appliance.d/initrd /initrd
+
+ echo "Adjusting configuration files in the image ..."
+ mkdir-p /etc/modprobe.d
+ write /etc/modprobe.d/kvm.conf "options kvm_intel nested=1"
EOF
# Copy out the kernel, initrd and disk image.