From 7534164b2bb5ba46b698908d00a1a4dc43a4fe19 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 15 Nov 2018 23:32:18 -0500 Subject: manage mdadm.conf and mkinitcpio.conf with puppet --- bin/helpers/launch-partofme | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/helpers/launch-partofme b/bin/helpers/launch-partofme index aa857be..9567022 100755 --- a/bin/helpers/launch-partofme +++ b/bin/helpers/launch-partofme @@ -17,10 +17,9 @@ 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.*block /&mdadm encrypt lvm2 /' /etc/mkinitcpio.conf" +# configure the persistent disks properly at boot +copy "$(dirname "$0")"/../../modules/partofme/files/mdadm.conf /etc/mdadm.conf +copy "$(dirname "$0")"/../../modules/partofme/files/mkinitcpio.conf /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" -- cgit v1.2.3-54-g00ecf