index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 00:41:01 +0200 |
---|---|---|
committer | Lord Anton Hvornum <anton.feeds@gmail.com> | 2018-04-07 00:41:01 +0200 |
commit | 438e94f356bd6dc5a15f59eb41ef595f5f61bab6 (patch) | |
tree | 203a977d822727e60cea92b2e0d952196d3cad1e | |
parent | e48b84b4fbd6998a53caa6d2f8dc00fb70b85f55 (diff) |
-rw-r--r-- | archinstall.py | 8 |
diff --git a/archinstall.py b/archinstall.py index 29e32f73..8a427c43 100644 --- a/archinstall.py +++ b/archinstall.py @@ -119,6 +119,7 @@ if __name__ == '__main__': if not 'hostname' in args: args['hostname'] = 'Arcinstall' if not 'country' in args: args['country'] = 'SE' #all if not 'packages' in args: args['packages'] = '' + if not 'post' in args: args['post'] = 'reboot' print(args) if not os.path.isfile(args['pwfile']): @@ -182,6 +183,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)) + print(o) if 'user' in args: o = run('arch-chroot /mnt useradd -m -G wheel {user}'.format(**args)) o = run('arch-chroot /mnt usermod --password {pin} {user}'.format(**args, pin=PIN)) @@ -210,5 +212,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') - - print('Done. "reboot" when you\'re done tinkering.') + if args['post'] != 'stay': + o = run('reboot now') + else: + print('Done. "reboot" when you\'re done tinkering.') |