Removed assumptions that !user and !super-users exists.
This commit is contained in:
commit
9b944b90b1
1 changed files with 6 additions and 6 deletions
|
@ -243,13 +243,13 @@ def perform_filesystem_operations():
|
||||||
fs.load_layout(archinstall.storage['disk_layouts'][drive.path])
|
fs.load_layout(archinstall.storage['disk_layouts'][drive.path])
|
||||||
|
|
||||||
def perform_installation(mountpoint):
|
def perform_installation(mountpoint):
|
||||||
user_credentials = {
|
user_credentials = {}
|
||||||
"!users" : archinstall.arguments['!users'],
|
if archinstall.arguments.get('!users'):
|
||||||
"!superusers" : archinstall.arguments['!superusers'],
|
user_credentials["!users"] = archinstall.arguments['!users']
|
||||||
"!root-password" : archinstall.arguments['!root-password'],
|
if archinstall.arguments.get('!superusers'):
|
||||||
}
|
user_credentials["!superusers"] = archinstall.arguments['!superusers']
|
||||||
if archinstall.arguments.get('!encryption-password'):
|
if archinstall.arguments.get('!encryption-password'):
|
||||||
user_credentials["!encryption-password"] = archinstall.arguments.get('!encryption-password')
|
user_credentials["!encryption-password"] = archinstall.arguments['!encryption-password']
|
||||||
|
|
||||||
with open("/var/log/archinstall/user_credentials.json", "w") as config_file:
|
with open("/var/log/archinstall/user_credentials.json", "w") as config_file:
|
||||||
config_file.write(json.dumps(user_credentials, indent=4, sort_keys=True, cls=archinstall.UNSAFE_JSON))
|
config_file.write(json.dumps(user_credentials, indent=4, sort_keys=True, cls=archinstall.UNSAFE_JSON))
|
||||||
|
|
Loading…
Reference in a new issue