Use correct console= and other parameters for aarch64.
[supernested.git] / build-supernested.sh.in
index bd006ae..1d98416 100644 (file)
@@ -42,6 +42,16 @@ if [[ "$distro" =~ ^fedora- ]]; then
         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
@@ -66,10 +76,14 @@ echo "them, but encourage your distro to stop using security-through-obscurity."
 # 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.