From 707ef6ac8bd8726a0b408d584a7e86318fad5b23 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 8 Aug 2011 19:45:58 -0300 Subject: Make sure mountpoint is not mounted due to a failed install --- share/hydractl/provision | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'share/hydractl/provision') 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/ -- cgit v1.2.3