index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:22:21 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:22:21 +0000 |
commit | 43242d93e14b361b3b982035bedcb077ba46b693 (patch) | |
tree | 07c161ecca0e06f6a80647997e6bd1d571e182df | |
parent | 4f6b6ce8fc99f97cd593af7c8a1428f8c22a0c30 (diff) |
-rw-r--r-- | archinstall.py | 18 |
diff --git a/archinstall.py b/archinstall.py index 11149ff7..e2257c63 100644 --- a/archinstall.py +++ b/archinstall.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 import traceback import os, re, struct, sys, json, pty, shlex -import urllib.request, urllib.parse, ssl +import urllib.request, urllib.parse, ssl, signal from glob import glob from select import epoll, EPOLLIN, EPOLLHUP from socket import socket, inet_ntoa, AF_INET, AF_INET6, AF_PACKET @@ -74,6 +74,14 @@ except: return data ## FIXME: dependency checks (fdisk, lsblk etc) +def sig_handler(signal, frame): + print('Aborting further installation steps!') + print(' Here\'s a summary of the commandline:') + print(f' {sys.argv}') + + exit(0) +signal.signal(signal.SIGINT, sig_handler) + rootdir_pattern = re.compile('^.*?/devices') harddrives = oDict() @@ -606,10 +614,18 @@ if __name__ == '__main__': # with open(args['pwfile'], 'r') as pw: # PIN = pw.read().strip() + + print() print('[!] Disk PASSWORD is: {}'.format(args['password'])) print() + + for i in range(5, 0, -1): + print(f'Formatting in {i}...') + sleep(1) + + 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') |