summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-02 16:48:52 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-02 16:48:52 -0200
commit368da0e20e55556ee597ddbbf854b0d297af0647 (patch)
tree3849dd70d7e5593b140f917969248b8177cd7432 /share/hydractl/provision
parentd5b908872ce21a4c3a7783015b0f373f4f8e8b0c (diff)
downloadhydra-368da0e20e55556ee597ddbbf854b0d297af0647.tar.gz
hydra-368da0e20e55556ee597ddbbf854b0d297af0647.tar.bz2
Minor fixes
Diffstat (limited to 'share/hydractl/provision')
-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