Fixed broken login with systemd-boot

This commit is contained in:
Anton Hvornum 2019-06-20 15:32:44 +00:00
parent 943ce56974
commit 964502be7c
1 changed files with 1 additions and 1 deletions

View File

@ -742,7 +742,7 @@ if __name__ == '__main__':
## since we set the password as the last step. And then the command itself which will be executed by looking for:
## [root@<hostname> ~]#
o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt -b --machine temporary', opts={'triggers' : {
bytes(f'{args["hostname"]} login', 'UTF-8') : b'root\n',
bytes(f'login:', 'UTF-8') : b'root\n',
b'Password' : bytes(args['password']+'\n', 'UTF-8'),
bytes(f'[root@{args["hostname"]} ~]#', 'UTF-8') : bytes(command+'\n', 'UTF-8'),
}, **opts}).exec())