From 4c37e916f8293696a0ef04a06775b4e7e7fad665 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 11 Apr 2019 21:51:48 +0200 Subject: Writing needs to be bytes --- archinstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archinstall.py b/archinstall.py index ec356021..4d6f5e48 100644 --- a/archinstall.py +++ b/archinstall.py @@ -638,7 +638,7 @@ if __name__ == '__main__': fh.write('ExecStart=-/usr/bin/agetty --autologin root -s %I 115200,38400,9600 vt102\n') ## And then boot and execute: - o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt -b --machine temporary', opts={'triggers' : {b'Graphical Interface' : command}, **opts}).exec()) + o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt -b --machine temporary', opts={'triggers' : {b'Graphical Interface' : bytes(command, 'UTF-8')}, **opts}).exec()) ## And cleanup after out selves.. Don't want to leave any residue.. os.remove('/mnt/etc/systemd/system/console-getty.service.d/override.conf') -- cgit v1.2.3-70-g09d2