Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorLord Anton Hvornum <anton.feeds@gmail.com>2018-04-07 01:21:45 +0200
committerLord Anton Hvornum <anton.feeds@gmail.com>2018-04-07 01:21:45 +0200
commit0447d1cb4071b5ad5ba874c4a80ac6c8e555e0bb (patch)
treed3390803953938fcea1d7e52aa43a12f0e00c9c5 /archinstall.py
parent1cc417628d76b329dd9c26f1a95d875e2b9653ad (diff)
Brought back automatic reboot. changing password doesn't work atm
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/archinstall.py b/archinstall.py
index 43e1ba32..a9721e17 100644
--- a/archinstall.py
+++ b/archinstall.py
@@ -187,6 +187,7 @@ if __name__ == '__main__':
o = run('arch-chroot /mnt locale-gen')
o = run('arch-chroot /mnt chmod 700 /root')
#o = run('arch-chroot /mnt usermod --password {} root'.format(PIN))
+ #TODO: This doesn't work either: (why the hell not?)
o = run("arch-chroot /mnt echo 'root:{pin}' | chpasswd".format(**args, pin=PIN))
if 'user' in args:
o = run('arch-chroot /mnt useradd -m -G wheel {user}'.format(**args))
@@ -216,7 +217,7 @@ if __name__ == '__main__':
entry.write('options cryptdevice=UUID={UUID}:luksdev root=/dev/mapper/luksdev rw intel_pstate=no_hwp\n'.format(UUID=UUID))
o = run('umount -R /mnt')
- #if args['post'] == 'reboot':
- # o = run('reboot now')
- #else:
- # print('Done. "reboot" when you\'re done tinkering.')
+ if args['post'] == 'reboot':
+ o = run('reboot now')
+ else:
+ print('Done. "reboot" when you\'re done tinkering.')