diff options
author | Jesse Luehrs <doy@tozt.net> | 2018-11-15 23:32:18 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2018-11-15 23:32:18 -0500 |
commit | 7534164b2bb5ba46b698908d00a1a4dc43a4fe19 (patch) | |
tree | dcfb857092cc6903e27b34a314f60b56602b9dc3 /bin | |
parent | 672d557949496189db879f6a63ce0a0947bb7785 (diff) | |
download | puppet-tozt-7534164b2bb5ba46b698908d00a1a4dc43a4fe19.tar.gz puppet-tozt-7534164b2bb5ba46b698908d00a1a4dc43a4fe19.zip |
manage mdadm.conf and mkinitcpio.conf with puppet
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/helpers/launch-partofme | 7 |
1 files changed, 3 insertions, 4 deletions
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" |