Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:51:48 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:51:48 +0200
commit4c37e916f8293696a0ef04a06775b4e7e7fad665 (patch)
treeb9f1e630387c14785b62a97831d3300d48fd381b /archinstall.py
parentcc917661611d2439d84dd259e0dbfad470806a51 (diff)
Writing needs to be bytes
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py2
1 files changed, 1 insertions, 1 deletions
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')