better support for systems with no pxe
[automated-distro-installer] / ubuntu-xenial-live-fai-kexec
diff --git a/ubuntu-xenial-live-fai-kexec b/ubuntu-xenial-live-fai-kexec
new file mode 100644 (file)
index 0000000..c44e9b2
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+# You can copy this to a http server, then curl url|sudo bash
+
+set -ex
+sed -ri '/^\s*deb\s+http/s/$/ universe/' /etc/apt/sources.list
+apt-get update
+apt-get install -y debconf
+debconf-set-selections <<EOF
+kexec-tools kexec-tools/load_kexec boolean false
+EOF
+apt-get install -y pxe-kexec
+sleep 5
+pxe-kexec -n --ignore-whitelist -l fai-generated faiserver