From 5b3da19575e06cd21b89f66b4e01bfc5c7181bc7 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 3 Jul 2018 11:23:36 -0300 Subject: Provision: more fixes --- share/hydractl/provision | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'share/hydractl') 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 -- cgit v1.2.3