Added a timeout on the HTTPS POST status after a successful install.
This commit is contained in:
parent
d449bb4b1f
commit
96e8cc4d5b
|
|
@ -19,7 +19,7 @@ while (disk_password := getpass.getpass(prompt='Enter disk encryption password (
|
||||||
hostname = input('Desired hostname for the installation: ')
|
hostname = input('Desired hostname for the installation: ')
|
||||||
if len(hostname) == 0: hostname = 'ArchInstall'
|
if len(hostname) == 0: hostname = 'ArchInstall'
|
||||||
|
|
||||||
while (root_pw := getpass.getpass(prompt='Enter root password (leave blank for no password): ')):
|
while (root_pw := getpass.getpass(prompt='Enter root password (leave blank to leave root disabled): ')):
|
||||||
root_pw_verification = getpass.getpass(prompt='And one more time for verification: ')
|
root_pw_verification = getpass.getpass(prompt='And one more time for verification: ')
|
||||||
if root_pw != root_pw_verification:
|
if root_pw != root_pw_verification:
|
||||||
archinstall.log(' * Passwords did not match * ', bg='black', fg='red')
|
archinstall.log(' * Passwords did not match * ', bg='black', fg='red')
|
||||||
|
|
|
||||||
|
|
@ -38,4 +38,4 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs:
|
||||||
req = urllib.request.Request("https://archlinux.life/build/successful",
|
req = urllib.request.Request("https://archlinux.life/build/successful",
|
||||||
data=json.dumps(conditions).encode('utf8'),
|
data=json.dumps(conditions).encode('utf8'),
|
||||||
headers={'content-type': 'application/json'})
|
headers={'content-type': 'application/json'})
|
||||||
urllib.request.urlopen(req)
|
urllib.request.urlopen(req, timeout=5)
|
||||||
Loading…
Reference in New Issue