Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/minimal.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/minimal.py')
-rw-r--r--examples/minimal.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/minimal.py b/examples/minimal.py
index 90bd9227..de896d48 100644
--- a/examples/minimal.py
+++ b/examples/minimal.py
@@ -1,5 +1,9 @@
import archinstall
+# Unmount and close previous runs
+archinstall.sys_command(f'umount -R /mnt', suppress_errors=True)
+archinstall.sys_command(f'cryptsetup close /dev/mapper/luksloop', suppress_errors=True)
+
# Select a harddrive and a disk password
archinstall.log(f"Minimal only supports:")
archinstall.log(f" * Being installed to a single disk")