Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.feeds@gmail.com>2018-04-12 21:11:54 +0200
committerLord Anton Hvornum <anton.feeds@gmail.com>2018-04-12 21:17:33 +0200
commitadfe5599d19e38952bf3ef3bbd125c22da27cb4d (patch)
tree17beb4ac3f0edbc4c8e9d51e451137d52e23519b
parent7e22e24636238ee9a185fc92f04d49b327c8a87f (diff)
Restructured the reboot step, added locale.conf
-rw-r--r--archinstall.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/archinstall.py b/archinstall.py
index 9c22e680..40a28e8b 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -275,6 +275,7 @@ if __name__ == '__main__':
#o = run("arch-chroot /mnt sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen")
o = run("arch-chroot /mnt sh -c \"echo '{hostname}' > /etc/hostname\"".format(**args))
o = run("arch-chroot /mnt sh -c \"echo -n 'en_US.UTF-8' > /etc/locale.gen\"")
+ o = run("arch-chroot /mnt sh -c \"echo -n 'LANG=en_US.UTF-8' > /etc/locale.conf\"")
o = run('arch-chroot /mnt locale-gen')
o = run('arch-chroot /mnt chmod 700 /root')
@@ -328,8 +329,8 @@ if __name__ == '__main__':
print('[W] Post install command failed: {}'.format(o.decode('UTF-8')))
#print(o)
- o = run('umount -R /mnt')
if args['post'] == 'reboot':
+ o = run('umount -R /mnt')
o = run('reboot now')
else:
- print('Done. "reboot" when you\'re done tinkering.')
+ print('Done. "umount -R /mnt; reboot" when you\'re done tinkering.')