From 36d7329bbee2d5841342686205190751fbf4e553 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 8 Aug 2011 19:46:35 -0300 Subject: Setup mountpoint before creating the filesystem --- share/hydractl/provision | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/share/hydractl/provision b/share/hydractl/provision index 455fe88..ca2092e 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -73,6 +73,11 @@ if [ "$garbage" == "y" ]; then dd if=/dev/urandom of="$device"1 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 + # Create root device. if [ "$encrypt" == "y" ]; then echo "Creating encrypted root device..." @@ -86,11 +91,6 @@ 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..." mount $install_device /tmp/debootstrap/ -- cgit v1.2.3