Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 16:29:41 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-03-15 16:29:41 +0000
commit2a3aa2738d1faf65c7949c0eed90c317fd77e13d (patch)
tree7fa75950e491b246fa31cd3208c364cfd28c53de /archinstall.py
parent4223631b80c6787b470313d829beda5b5ed08037 (diff)
New function: reboot(). Does what you think it does. Also does a sync tho just to be safe.
Diffstat (limited to 'archinstall.py')
-rw-r--r--archinstall.py4
1 files changed, 4 insertions, 0 deletions
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'