X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=live-kexec;h=651dad7bcf1424f00ccbfd42a4bfd7a25b07c427;hb=47b51938ae090a2717cb2ec3f9e547a76e7b2ae7;hp=10975a8f223790a4499a558ceacf58f869616ae6;hpb=e729557712e9355ffa9103e6083d1161d5fd6063;p=automated-distro-installer diff --git a/live-kexec b/live-kexec index 10975a8..651dad7 100644 --- a/live-kexec +++ b/live-kexec @@ -1,7 +1,8 @@ #!/bin/bash # +# fai kexec from upstream live cds, i.e. curl|bash # You can copy this to a http server, then wget -O- url|sudo bash -# or curl|bash, if curl is installed. +# curl is sometimes not preinstalled on a live cd. # # This has been tested on trisquel belanos and ubuntu xenial. # @@ -12,15 +13,21 @@ set -ex if grep -q ID=ubuntu /etc/os-release; then + # add universe, pxe-kexec is there sed -ri '/^\s*deb/{/universe/!s/$/ universe/}' /etc/apt/sources.list fi -apt-get update -apt-get install -y debconf -debconf-set-selections </dev/null; then + apt-get update + apt-get install -y debconf + debconf-set-selections <