From 5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 25 Jan 2022 13:50:06 -0300 Subject: Fix: provision: optimize dependency installation --- share/hydractl/provision | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3