diff --git a/arch-install b/arch-install index 130d7e0..97c82cd 100755 --- a/arch-install +++ b/arch-install @@ -68,6 +68,9 @@ function secureumount() { umount ${mountpoint}/boot umount ${mountpoint} fi + if cat /proc/mounts | grep /dev/mapper/luks0 > /dev/null; then + cryptsetup remove /dev/mapper/luks0 + fi fi