aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/provision12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index fd989cf..7cb3671 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -158,10 +158,10 @@ 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
-umount /tmp/debootstrap/home &> /dev/null
-umount /tmp/debootstrap/var &> /dev/null
+umount /tmp/debootstrap &> /dev/null
+for folder in proc dev home var boot sys; do
+ umount /tmp/debootstrap/$folder &> /dev/null
+done
# Create devices
hydra_create_volume root
@@ -173,7 +173,7 @@ hydra_safe_run mount $install_device /tmp/debootstrap/
# Mount additional volumes
if [ "$home_size" != "0" ]; then
- mkdir tmp/debootstrap/home
+ mkdir /tmp/debootstrap/home
if [ "$encrypt" == "y" ]; then
hydra_safe_run mount /dev/mapper/home /tmp/debootstrap/home
@@ -183,7 +183,7 @@ if [ "$home_size" != "0" ]; then
fi
if [ "$var_size" != "0" ]; then
- mkdir tmp/debootstrap/var
+ mkdir /tmp/debootstrap/var
if [ "$encrypt" == "y" ]; then
hydra_safe_run mount /dev/mapper/var /tmp/debootstrap/var