diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 13:50:06 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-01-25 13:50:06 -0300 |
commit | 5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b (patch) | |
tree | f4d005fef8139fefbbd6e6456427f52fe2d1d19c /share/hydractl | |
parent | 221a879f4de007c81bebffafab718212bcea9f0e (diff) | |
download | hydra-5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b.tar.gz hydra-5cf0c43a3ff808b72a0fc1d6ce8264206a65b35b.tar.bz2 |
Fix: provision: optimize dependency installation
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 4 |
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 |