From 8b41ed20376bdb161dc425644c40c34906362812 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 15 Nov 2018 02:17:58 -0500 Subject: detect disks on partofme --- bin/helpers/launch-partofme | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-54-g00ecf