fix some bugs and mix other things
[automated-distro-installer] / lk
diff --git a/lk b/lk
index 5bd5833d158363576beaf82744012334dbf79615..dbe9d2ea7115ac87328d03f770c6435db6068aea 100644 (file)
--- a/lk
+++ b/lk
@@ -23,7 +23,9 @@ fai kexec from upstream live cds, i.e. curl|bash
 You can copy this to a http server, then wget -O- url|sudo bash
 curl is sometimes not preinstalled on a live cd.
 
-This has been tested on trisquel belenos and ubuntu xenial.
+This has been tested on trisquel belenos and ubuntu xenial & 18.10.
+With 18.10 on an x200, kexec was unreliable, resulting in freezes and
+kernel panics.
 
 If the screen just sits in a weird color inverted, corrupted looking state,
 it's probably nothing wrong with the computer, but a problem
@@ -42,7 +44,7 @@ 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
-if ! type -p pxe-kexec &>/dev/null; then
+if ! type -p pxe-kexec >/dev/null 2>&1; then
     apt-get update
     apt-get install -y debconf
     debconf-set-selections <<EOF