Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 21:50:53 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 21:50:53 +0200
commit5099376dcdf59cbfcd146f3c2fa92872b2b1920c (patch)
tree6fd8d46c133caf30f5f222eb1852ede24e691726 /examples
parentbd134c5db0f9fb93b51e00b3a2df992715d28d81 (diff)
Attempting to fix auto-detection of encrypted drives. So that #124 can perform reverse detection on partitions and detect encryption.
Diffstat (limited to 'examples')
-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")