]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix: provision: optimize dependency installation
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 16:50:06 +0000 (13:50 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 25 Jan 2022 16:50:06 +0000 (13:50 -0300)
share/hydractl/provision

index 4d6c80796e5d103e379cd7b22491eaa1a2e7e949..26ed8689de4455c9df60e26c6b0ed6013096e056 100755 (executable)
@@ -184,7 +184,7 @@ export LC_ALL=C
 hydra_provision_config
 
 # Check for requirements.
-for req in debootstrap cryptsetup grub-pc lvm2 parted mdadm; do
+for req in debootstrap cryptsetup lvm2 parted; do
   hydra_install_package $req
 done
 
@@ -229,6 +229,8 @@ if [ "$num_devices" != "1" ]; then
     hydra_sudo_run parted -s -- $dev set     1    raid on
   done
 
+  hydra_install_package mdadm
+
   mdadm --create --verbose $device --level=1 --raid-devices=$num_devices $physical_devices
 
   # See https://bbs.archlinux.org/viewtopic.php?id=148250