From: Silvio Rhatto Date: Mon, 8 Aug 2011 22:45:58 +0000 (-0300) Subject: Make sure mountpoint is not mounted due to a failed install X-Git-Tag: 0.1~318 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=707ef6ac8bd8726a0b408d584a7e86318fad5b23;p=hydra.git Make sure mountpoint is not mounted due to a failed install --- 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/