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+github@gmail.com>2019-11-13 21:24:23 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2019-11-13 21:24:23 +0000
commitb685f354500cec9101eeaf88f86a65557ea1fc9c (patch)
tree8fc051493899b487e91eefb7bebf05c83fa17df0 /archinstall.py
parentd9a986922cf74b31cdb00d33d718af73e3fcb48b (diff)
parent43242d93e14b361b3b982035bedcb077ba46b693 (diff)
Merge branch 'master' of github.com:Torxed/archinstall into aur-support
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py18
1 files changed, 17 insertions, 1 deletions
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')