From e525ddf4598d9039f5dac37bb5b553bc84a2bd09 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 14 Nov 2018 23:07:40 -0500 Subject: ensure the kernel is up to date before starting to install --- bin/helpers/launch-partofme | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') 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' ." -- cgit v1.2.3-54-g00ecf