index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:24:23 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds+github@gmail.com> | 2019-11-13 21:24:23 +0000 |
commit | b685f354500cec9101eeaf88f86a65557ea1fc9c (patch) | |
tree | 8fc051493899b487e91eefb7bebf05c83fa17df0 /archinstall.py | |
parent | d9a986922cf74b31cdb00d33d718af73e3fcb48b (diff) | |
parent | 43242d93e14b361b3b982035bedcb077ba46b693 (diff) |
-rw-r--r-- | archinstall.py | 18 |
diff --git a/archinstall.py b/archinstall.py index ad1830be..44c41ffe 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() @@ -607,10 +615,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') |