summaryrefslogtreecommitdiffstats
path: root/bin/helpers
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-14 23:07:40 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-14 23:07:40 -0500
commite525ddf4598d9039f5dac37bb5b553bc84a2bd09 (patch)
treebf4db19b10c3a9b1a154d7b58d1e55529a301d22 /bin/helpers
parentf68dc23ed94e1c5877aa08a352b8464ba550591f (diff)
downloadpuppet-tozt-e525ddf4598d9039f5dac37bb5b553bc84a2bd09.tar.gz
puppet-tozt-e525ddf4598d9039f5dac37bb5b553bc84a2bd09.zip
ensure the kernel is up to date before starting to install
Diffstat (limited to 'bin/helpers')
-rwxr-xr-xbin/helpers/launch-partofme10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/helpers/launch-partofme b/bin/helpers/launch-partofme
index a179861..43643bc 100755
--- a/bin/helpers/launch-partofme
+++ b/bin/helpers/launch-partofme
@@ -17,6 +17,16 @@ copy() {
scp -r $ssh_opts "$1" root@"$host":"$2"
}
+# ensure we have the latest linux version, and that we're actually running that
+# kernel, otherwise wireguard will fail to build and install the correct kernel
+# modules
+run "pacman -Syu --noconfirm"
+run "reboot"
+
+while ! run true; do
+ sleep 5
+done
+
run "pacman -S --noconfirm git puppet"
run "mkdir -p '$conf_location'"
run "cd '$conf_location' && git clone '$conf_repo' ."