aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-07-03 11:23:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-07-03 11:23:36 -0300
commit5b3da19575e06cd21b89f66b4e01bfc5c7181bc7 (patch)
tree5b565564ad749ca370b08d4894093f1b0fc5314e /share
parentb7311dc95f4fb020580be7be7d5c0e8a278e326b (diff)
downloadhydra-5b3da19575e06cd21b89f66b4e01bfc5c7181bc7.tar.gz
hydra-5b3da19575e06cd21b89f66b4e01bfc5c7181bc7.tar.bz2
Provision: more fixes
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 96784c5..5c3e574 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -544,7 +544,10 @@ if [ "$swap_size" != "0" ]; then
hydra_sudo_run cryptsetup luksClose provision-swap
fi
-hydra_sudo_run cryptsetup luksClose provision-root
+if [ "$encrypt" == "y" ]; then
+ hydra_sudo_run cryptsetup luksClose provision-root
+fi
+
hydra_sudo_run vgchange -a n $vg
cat <<-EOF