iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various fixes
[automated-distro-installer]
/
live-kexec
diff --git
a/live-kexec
b/live-kexec
index fd4bf6fa924658c55b2773c0241a27148d85ecaf..651dad7bcf1424f00ccbfd42a4bfd7a25b07c427 100644
(file)
--- a/
live-kexec
+++ b/
live-kexec
@@
-1,7
+1,8
@@
#!/bin/bash
#
#!/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
# You can copy this to a http server, then wget -O- url|sudo bash
-#
or curl|bash, if curl is installe
d.
+#
curl is sometimes not preinstalled on a live c
d.
#
# This has been tested on trisquel belanos and ubuntu xenial.
#
#
# This has been tested on trisquel belanos and ubuntu xenial.
#
@@
-12,6
+13,7
@@
set -ex
if grep -q ID=ubuntu /etc/os-release; then
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
if ! type -p pxe-kexec &>/dev/null; then
sed -ri '/^\s*deb/{/universe/!s/$/ universe/}' /etc/apt/sources.list
fi
if ! type -p pxe-kexec &>/dev/null; then