Swapped the instance sent to Boot()

This commit is contained in:
Anton Hvornum 2021-05-20 16:17:04 +02:00 committed by GitHub
parent 73e3b99f72
commit cf3e47aa44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ def perform_installation(mountpoint):
# If the user provided custom commands to be run post-installation, execute them now.
if len(archinstall.arguments['custom-commands']):
with Boot(archinstall) as session:
with Boot(installation) as session:
for command in archinstall.arguments['custom-commands']:
archinstall.log(f'Executing custom command "{command}" ...', fg='yellow')
session.SysCommand(["bash", "-c"] + command.split(' '))