index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:15:17 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:15:17 +0200 |
commit | 80d7fca43d73bde4576f239c95e94388cc2b1a23 (patch) | |
tree | a24194298ed583b5103cbc7377746b30fb920bcd /archinstall.py | |
parent | 3fb42df1626b6328864620c577b1e2b7e1b0c278 (diff) |
-rw-r--r-- | archinstall.py | 6 |
diff --git a/archinstall.py b/archinstall.py index 7bfac35d..f76911a8 100644 --- a/archinstall.py +++ b/archinstall.py @@ -205,7 +205,7 @@ def update_git(): if os.path.isfile('/root/archinstall/README.md'): os.remove('/root/archinstall/README.md') - output = simple_command('(cd /root/archinstall; git reset --hard origin/$(git branch | grep "*" | cut -d\' \' -f 2))') # git reset --hard origin/<branch_name> / git fetch --all + output = simple_command('(cd /root/archinstall; git reset --hard origin/$(git branch | grep "*" | cut -d\' \' -f 2); git pull)') print(output) if b'error:' in output: @@ -466,8 +466,8 @@ if __name__ == '__main__': exit(1) o = sys_command('/usr/bin/cryptsetup open {drive}{partition_2} luksdev --key-file {pwfile} --type luks2'.format(**args)).exec() - o = sys_command('/usr/bin/file /dev/mapper/luksdev').exec() # /dev/dm-0 - if b'cannot open' in b''.join(o): + 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) exit(1) |