summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-06 23:21:45 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-06 23:21:45 -0300
commit440fd2954773f310597e9508d9fc931afee998dc (patch)
treef04bb7eb21f547b513112c284250ff9099221093 /share/hydractl/provision
parent613707a83fcadac0f67dc89d2c5b7fda387d7855 (diff)
downloadhydra-440fd2954773f310597e9508d9fc931afee998dc.tar.gz
hydra-440fd2954773f310597e9508d9fc931afee998dc.tar.bz2
Checking for dependencies at provision action
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 2822864..fecef58 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -17,6 +17,11 @@ hydra_user_input version lenny "Distro version"
hydra_user_input vg vg "Temporary install vg"
hydra_user_input grub n "Setup GRUB? (y/n)"
+# Check for requirements.
+for reqs in debootstrap cryptsetup; do
+ hydra_install_package $req
+done
+
# Warning.
cat <<-EOF
Make sure you have chosen the right parameters and that $device has the needed partitions: