diff options
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 5 |
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 |