summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-22 18:51:30 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-22 18:51:30 -0200
commit872197d60331286513c618ad2cac4420eb907d96 (patch)
treec127b27d412143e932deb4e650e954643eb9a03c /share
parentae17ce41323bbf409b704e7fe3270e8fd641909c (diff)
downloadhydra-872197d60331286513c618ad2cac4420eb907d96.tar.gz
hydra-872197d60331286513c618ad2cac4420eb907d96.tar.bz2
Debian mirror support at provision
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 0d191c9..00f4208 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -18,6 +18,7 @@ hydra_user_input arch amd64 "System arch"
hydra_user_input version squeeze "Distro version"
hydra_user_input vg vg "Temporary install vg"
hydra_user_input grub n "Setup GRUB? (y/n)"
+hydra_user_input mirror http://cdn.debian.net/debian/ "Debian mirror"
# Check for requirements.
for req in debootstrap cryptsetup grub-pc lvm2; do
@@ -94,7 +95,7 @@ fi
# Initial system install.
echo "Installing base system..."
mount $install_device /tmp/debootstrap/
-debootstrap --arch=$arch $version /tmp/debootstrap/
+debootstrap --arch=$arch $version /tmp/debootstrap/ $mirror
# Initial configuration.
echo "Applying initial configuration..."