aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-25 13:50:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-25 13:50:06 -0300
commit5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b (patch)
treef4d005fef8139fefbbd6e6456427f52fe2d1d19c /share/hydractl/provision
parent221a879f4de007c81bebffafab718212bcea9f0e (diff)
downloadhydra-5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b.tar.gz
hydra-5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b.tar.bz2
Fix: provision: optimize dependency installation
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 4d6c807..26ed868 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -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