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:46:14 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:46:14 +0200
commitcc917661611d2439d84dd259e0dbfad470806a51 (patch)
tree7281548af82f5f8a92e43a9e9f2acbe3ce2f5373 /archinstall.py
parent69de48da7d2ef45cb388d808468d1a0e158b59e9 (diff)
Increased read buffer from 1024 to 8192. Also added the command as a trigger
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index d04af178..ec356021 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -155,7 +155,7 @@ class sys_command():
while alive:
for fileno, event in poller.poll(0.1):
try:
- output = os.read(child_fd, 1024).strip()
+ output = os.read(child_fd, 8192).strip()
trace_log += output
except OSError:
alive = False
@@ -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 {c}'.format(c=command), opts=opts).exec())
+ o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt -b --machine temporary', opts={'triggers' : {b'Graphical Interface' : command}, **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')