Use lazy unmount, prevent errors about the target being busy

This commit is contained in:
Fierelier 2023-07-12 04:44:16 +02:00
parent 36a83b3d84
commit 9f1f9ee7da

View File

@ -415,7 +415,7 @@ def main():
print("> Unmounting ...")
if hasSwap: call(["swapoff",ipth("swap")])
call(["umount",ipth()])
call(["umount","-l",ipth()])
os.rmdir(ipth())
if encrypt: call(["cryptsetup","luksClose","system"])