Fixed broken login with systemd-boot
This commit is contained in:
parent
943ce56974
commit
964502be7c
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue