diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-15 02:17:58 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-15 02:17:58 -0500 |
commit | 8b41ed20376bdb161dc425644c40c34906362812 (patch) | |
tree | 99ea7b9a86590111966087b093734d0e15489424 /bin | |
parent | 70962c2d930179c2cf2d45e033d18155872d1f71 (diff) | |
download | puppet-tozt-8b41ed20376bdb161dc425644c40c34906362812.tar.gz puppet-tozt-8b41ed20376bdb161dc425644c40c34906362812.zip |
detect disks on partofme
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/helpers/launch-partofme | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/helpers/launch-partofme b/bin/helpers/launch-partofme index 0c9b915..4459df1 100755 --- a/bin/helpers/launch-partofme +++ b/bin/helpers/launch-partofme @@ -17,10 +17,13 @@ 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 +# detect the persistent disks properly on boot +run "sed -i 's/^HOOKS=(base udev /&mdadm encrypt lvm2 /' /etc/mkinitcpio.conf" +# ensure we have the latest linux version, otherwise wireguard will fail to +# build and install the correct kernel modules run "pacman -Syu --noconfirm" +# reboot to get our disks detected and to make sure we're actually running the +# latest kernel, or else loading the wireguard modules will fail run "reboot" while ! run true; do |