diff options
-rwxr-xr-x | share/hydractl/provision | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index e3cef31..2ca8c0a 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -503,7 +503,11 @@ fi echo "Umounting installation device..." hydra_sudo_run umount $WORK/sys $WORK/proc $WORK/dev $WORK -hydra_sudo_run cryptsetup luksClose provision-swap + +if [ "$swap_size" != "0" ]; then + hydra_sudo_run cryptsetup luksClose provision-swap +fi + hydra_sudo_run cryptsetup luksClose provision-root hydra_sudo_run vgchange -a n $vg |