aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-08 19:45:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-08 19:45:58 -0300
commit707ef6ac8bd8726a0b408d584a7e86318fad5b23 (patch)
tree41a3c5b82c5a658add75ec5f488e19f099f6ebf5 /share/hydractl
parentf5dff063011a91109085beb743d94c653b08a9c7 (diff)
downloadhydra-707ef6ac8bd8726a0b408d584a7e86318fad5b23.tar.gz
hydra-707ef6ac8bd8726a0b408d584a7e86318fad5b23.tar.bz2
Make sure mountpoint is not mounted due to a failed install
Diffstat (limited to 'share/hydractl')
-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/