Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:26:06 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2019-06-20 16:26:06 +0000
commit7587f67a70d80dff9ad94444ba70d505773763ba (patch)
tree7337332721fee609327cd90606c21a52e85e7959 /archinstall.py
parent6dacf539c945dcaae488f6bfd6c1ad4d8a877090 (diff)
Fixing rerun
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index df255b02..bfc44667 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -572,7 +572,9 @@ if __name__ == '__main__':
print('[E] Failed to setup disk encryption.', o)
exit(1)
- o = b''.join(sys_command('/usr/bin/cryptsetup open {drive}{partition_2} luksdev --key-file {pwfile} --type luks2'.format(**args)).exec())
+ o = b''.join(sys_command('/usr/bin/file /dev/mapper/luksdev').exec()) # /dev/dm-0
+ if b'cannot open' in o:
+ o = b''.join(sys_command('/usr/bin/cryptsetup open {drive}{partition_2} luksdev --key-file {pwfile} --type luks2'.format(**args)).exec())
o = b''.join(sys_command('/usr/bin/file /dev/mapper/luksdev').exec()) # /dev/dm-0
if b'cannot open' in o:
print('[E] Could not mount encrypted device.', o)
@@ -739,7 +741,7 @@ if __name__ == '__main__':
o = simple_command("cd /mnt; mount --make-rslave --rbind /dev dev")
o = simple_command('chroot /mnt /bin/bash -c "{c}"'.format(c=command), opts=opts)
o = simple_command("cd /mnt; umount -R dev")
- o = simple_command("cd /mnt; umount -R sys")
+ o = simple_command("cd /mnt; umount -R sys")
o = simple_command("cd /mnt; umount -R proc")
else:
if 'boot' in opts and opts['boot']: