index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:57:53 +0200 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2019-04-11 21:57:53 +0200 |
commit | 53c95fc1b8c431f420aec2cc0e924e557907d651 (patch) | |
tree | a0d89bf7a89231fe79fcac76fc43ab035bf1802a | |
parent | 4c37e916f8293696a0ef04a06775b4e7e7fad665 (diff) |
-rw-r--r-- | archinstall.py | 14 |
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: |