From 2a3aa2738d1faf65c7949c0eed90c317fd77e13d Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 15 Mar 2020 16:29:41 +0000 Subject: New function: reboot(). Does what you think it does. Also does a sync tho just to be safe. --- archinstall.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archinstall.py') diff --git a/archinstall.py b/archinstall.py index 808ee018..fab7586b 100644 --- a/archinstall.py +++ b/archinstall.py @@ -992,6 +992,10 @@ def flush_all_mirrors(*positionals, **kwargs): mirrorlist.write('\n') # TODO: Not needed. return True +def reboot(*positionals, **kwargs): + simple_command('/usr/bin/sync', *positionals, **kwargs).decode('UTF-8').strip() + simple_command('/usr/bin/reboot', *positionals, **kwargs).decode('UTF-8').strip() + def strap_in_base(*positionals, **kwargs): if args['aur-support']: args['packages'] += ' git' -- cgit v1.2.3-70-g09d2