Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:57:53 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2019-04-11 21:57:53 +0200
commit53c95fc1b8c431f420aec2cc0e924e557907d651 (patch)
treea0d89bf7a89231fe79fcac76fc43ab035bf1802a
parent4c37e916f8293696a0ef04a06775b4e7e7fad665 (diff)
Trying something else
-rw-r--r--archinstall.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/archinstall.py b/archinstall.py
index 4d6f5e48..f2d23b5b 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -630,18 +630,18 @@ if __name__ == '__main__':
## So, if we're going to boot this maddafakker up, we'll need to
## be able to login. The quickest way is to just add automatic login.. so lessgo!
- if not os.path.isdir('/mnt/etc/systemd/system/console-getty.service.d/'):
- os.makedirs('/mnt/etc/systemd/system/console-getty.service.d/')
- with open('/mnt/etc/systemd/system/console-getty.service.d/override.conf', 'w') as fh:
- fh.write('[Service]\n')
- fh.write('ExecStart=\n')
- fh.write('ExecStart=-/usr/bin/agetty --autologin root -s %I 115200,38400,9600 vt102\n')
+ # if not os.path.isdir('/mnt/etc/systemd/system/console-getty.service.d/'):
+ # os.makedirs('/mnt/etc/systemd/system/console-getty.service.d/')
+ # with open('/mnt/etc/systemd/system/console-getty.service.d/override.conf', 'w') as fh:
+ # fh.write('[Service]\n')
+ # fh.write('ExecStart=\n')
+ # 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' : 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')
+ # os.remove('/mnt/etc/systemd/system/console-getty.service.d/override.conf')
else:
o = b''.join(sys_command('/usr/bin/systemd-nspawn -D /mnt --machine temporary {c}'.format(c=command), opts=opts).exec())
if type(conf[title][raw_command]) == bytes and len(conf[title][raw_command]) and not conf[title][raw_command] in o: