summaryrefslogtreecommitdiffstats
path: root/bin/helpers
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-15 02:56:59 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-15 02:56:59 -0500
commit90eef37f6e25c47924f7ecc504817aa08480adaf (patch)
tree43f893acc9177a44196295ec6e993bc43cb39188 /bin/helpers
parent8b41ed20376bdb161dc425644c40c34906362812 (diff)
downloadpuppet-tozt-90eef37f6e25c47924f7ecc504817aa08480adaf.tar.gz
puppet-tozt-90eef37f6e25c47924f7ecc504817aa08480adaf.zip
better disk configuration
Diffstat (limited to 'bin/helpers')
-rwxr-xr-xbin/helpers/launch-partofme4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/helpers/launch-partofme b/bin/helpers/launch-partofme
index 4459df1..4adb695 100755
--- a/bin/helpers/launch-partofme
+++ b/bin/helpers/launch-partofme
@@ -17,8 +17,10 @@ copy() {
scp -r $ssh_opts "$1" root@"$host":"$2"
}
+# configure the mdadm arrays
+run "echo 'ARRAY /dev/md2 metadata=0.90 UUID=6bf2e365:10a7910f:52419904:51489ef3' >> /etc/mdadm.conf"
# detect the persistent disks properly on boot
-run "sed -i 's/^HOOKS=(base udev /&mdadm encrypt lvm2 /' /etc/mkinitcpio.conf"
+run "sed -i 's/^HOOKS=(base udev.*block /&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"