aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-12 11:40:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-12 11:40:03 -0300
commit5bbafd03b2adfca9cb681458bb47aaeb43a240c9 (patch)
tree06b1b4959d616780688f9d4f1df5ef58e0a012bc
parente08b83b1b45dceda375df1c37be1bfe046347f58 (diff)
downloadhydra-5bbafd03b2adfca9cb681458bb47aaeb43a240c9.tar.gz
hydra-5bbafd03b2adfca9cb681458bb47aaeb43a240c9.tar.bz2
More fixes at provision-chroot (2)
-rwxr-xr-xshare/hydractl/provision-chroot8
1 files changed, 4 insertions, 4 deletions
diff --git a/share/hydractl/provision-chroot b/share/hydractl/provision-chroot
index c989f63..bd7430a 100755
--- a/share/hydractl/provision-chroot
+++ b/share/hydractl/provision-chroot
@@ -34,20 +34,20 @@ function hydra_provision_config {
# Load configuration
hydra_provision_config_load $1
+# Get config parameters.
+hydra_provision_config
+
# Parameters
WORK="$folder"
CHROOT="hydra_sudo_run chroot $WORK"
-# Get config parameters.
-hydra_provision_config
-
# Check for requirements.
for req in debootstrap qemu-user-static; do
hydra_install_package $req
done
hydra_sudo_run mkdir -p /var/chroot
-hydra_sudo_run debootstrap --variant=minbase --arch $arch $version $WORK/ $mirror
+hydra_sudo_run debootstrap --variant=minbase --arch $arch $version $WORK $mirror
# Arch specific procedures
if [ "$arch" == "armel" ] || [ "$arch" == "armhf" ]; then