Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:38:07 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:38:07 +0000
commit1ffde6ff9f70769c7cfc81736c502b4ddb15d86a (patch)
tree16c8a118310bd1578ea0de899ceabfd6ff5e86bb
parentb859c519b08e54ee463a33e7617782719dbfa28d (diff)
Added a umounter / luksclose before installation. In case of a rerun
-rw-r--r--archinstall.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archinstall.py b/archinstall.py
index 99cdf08e..c79a5d4d 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -535,6 +535,8 @@ if __name__ == '__main__':
print()
if not args['rerun'] or args['ignore-rerun']:
+ o = simple_command('/usr/bin/umount -R /mnt')
+ o = simple_command('/usr/bin/cryptsetup close /dev/mapper/luksdev')
print('[N] Setting up {drive}.'.format(**args))
# dd if=/dev/random of=args['drive'] bs=4096 status=progress
# https://github.com/dcantrell/pyparted would be nice, but isn't officially in the repo's #SadPanda