better support for systems with no pxe
[automated-distro-installer] / ubuntu-xenial-live-fai-kexec
1 #!/bin/bash
2 # You can copy this to a http server, then curl url|sudo bash
3
4 set -ex
5 sed -ri '/^\s*deb\s+http/s/$/ universe/' /etc/apt/sources.list
6 apt-get update
7 apt-get install -y debconf
8 debconf-set-selections <<EOF
9 kexec-tools kexec-tools/load_kexec boolean false
10 EOF
11 apt-get install -y pxe-kexec
12 sleep 5
13 pxe-kexec -n --ignore-whitelist -l fai-generated faiserver