diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-02 16:48:52 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-02 16:48:52 -0200 |
commit | 368da0e20e55556ee597ddbbf854b0d297af0647 (patch) | |
tree | 3849dd70d7e5593b140f917969248b8177cd7432 /share/hydractl/provision | |
parent | d5b908872ce21a4c3a7783015b0f373f4f8e8b0c (diff) | |
download | hydra-368da0e20e55556ee597ddbbf854b0d297af0647.tar.gz hydra-368da0e20e55556ee597ddbbf854b0d297af0647.tar.bz2 |
Minor fixes
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 12 |
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 |