01e8f72eb7d44000acf7d7bbf298d9e47206e0b3
3 # You can copy this to a http server, then wget -O- url|sudo bash
4 # or curl|bash, if curl is installed.
6 # This has been tested on trisquel belanos and ubuntu xenial.
8 # If the screen just sits in a weird color inverted, corrupted looking state,
9 # it's probably nothing wrong with the computer, but a problem
10 # with the fai server. If you can do this from a virtual terminal,
11 # it will print out more info (I know from running it on a vm).
14 if grep -q ID
=ubuntu
/etc
/os-release
; then
15 # add universe, pxe-kexec is there
16 sed -ri '/^\s*deb/{/universe/!s/$/ universe/}' /etc
/apt
/sources.list
18 if ! type -p pxe-kexec
&>/dev
/null
; then
20 apt-get
install -y debconf
21 debconf-set-selections
<<EOF
22 kexec-tools kexec-tools/load_kexec boolean false
24 apt-get
install -y pxe-kexec
26 # running this piped to bash on belanos, the apt-get goes
27 # into the background while it's still installing, and pxe-kexec
28 # just exits right away. sleep calls are strangely ignored.
29 # I don't know whats going on, but just running the same
30 # command again once it finishes works, and this is only
31 # rarely used and done manually anyways, so whatever.
32 pxe-kexec
-n --ignore-whitelist -l fai-generated faiserver