From 1ffde6ff9f70769c7cfc81736c502b4ddb15d86a Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 20 Jun 2019 16:38:07 +0000 Subject: Added a umounter / luksclose before installation. In case of a rerun --- archinstall.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2