Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorDylan Taylor <dylan@dylanmtaylor.com>2021-04-12 09:10:00 -0400
committerDylan Taylor <dylan@dylanmtaylor.com>2021-04-12 09:21:10 -0400
commitb44c0e51976ed3c177341c78da49ccec4cd81b5b (patch)
treee13f149763f51d95a1bb627faffd6b32e477a87b /archinstall/lib/installer.py
parent897b67f7518b5fc0bac1f8a3fd02dc2d1266aea7 (diff)
Implement chroot prompt after successful installation
Try os.subprocess Revert to subprocess.check_call
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 7aa64816..7c3ee051 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -1,4 +1,4 @@
-import os, stat, time, shutil, pathlib
+import os, stat, time, shutil, pathlib, subprocess
from .exceptions import *
from .disk import *
@@ -81,6 +81,13 @@ class Installer():
if not (missing_steps := self.post_install_check()):
self.log('Installation completed without any errors. You may now reboot.', bg='black', fg='green', level=LOG_LEVELS.Info)
self.sync_log_to_install_medium()
+ self.log("For post-installation tips, see https://wiki.archlinux.org/index.php/Installation_guide#Post-installation", fg="yellow")
+ choice = input("Would you like to chroot into the newly created installation and perform post-installation configuration? [Y/n] ")
+ if choice.lower() in ("y", ""):
+ try:
+ subprocess.check_call(f"arch-chroot {self.target}", shell=True)
+ except:
+ pass
return True
else:
self.log('Some required steps were not successfully installed/configured before leaving the installer:', bg='black', fg='red', level=LOG_LEVELS.Warning)