summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 1c1c9b9..455fe88 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -86,9 +86,13 @@ else
install_device="/dev/vg/root"
fi
+# Setup mountpoint and make sure it's not mounted due to a failed install.
+mkdir -p /tmp/debootstrap
+umount /tmp/debootstrap/proc &> /dev/null
+umount /tmp/debootstrap/dev &> /dev/null
+
# Initial system install.
echo "Installing base system..."
-mkdir -p /tmp/debootstrap
mount $install_device /tmp/debootstrap/
debootstrap --arch=$arch $version /tmp/debootstrap/