Variable type-o issue.

This commit is contained in:
Anton Hvornum 2020-11-08 14:27:53 +01:00
parent 667e06c63e
commit 3598e0bfa2
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ def run_as_a_module():
try: try:
exec(profile) # Is this is very safe? exec(profile) # Is this is very safe?
except Exception as err: except Exception as err:
print(f"Failed to run profile... {err}") print(f"Error in profile {sys.argv[1]}: {err}")
sys.exit(1) # Should prompt for another profile path instead sys.exit(1) # Should prompt for another profile path instead

View File

@ -34,7 +34,7 @@ def perform_installation(device, boot_partition, language, mirrors):
Only requirement is that the block devices are Only requirement is that the block devices are
formatted and setup prior to entering this function. formatted and setup prior to entering this function.
""" """
with archinstall.Installer(device, boot_partition=boot_partition, hostname=hostname) as installation: with archinstall.Installer(device, boot_partition=boot_partition, hostname=archinstall.storage['_guided']['hostname']) as installation:
## if len(mirrors): ## if len(mirrors):
# Certain services might be running that affects the system during installation. # Certain services might be running that affects the system during installation.
# Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist # Currently, only one such service is "reflector.service" which updates /etc/pacman.d/mirrorlist