Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-04-13 13:54:23 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-04-13 13:54:23 +0200
commit516402cac48a618f019ad99e1cf77f9e180bdf7b (patch)
treee2e73f32de8e85165e643c93fd0229e1d4bc2dd1
parentfad9f40a83877701163988ab20029aec93cfdb7b (diff)
Moved the '.drop_to_shell()' into the with installation context so we don't loose 'installation'.
-rw-r--r--examples/guided.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 368bc5b3..29bbadca 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -335,14 +335,14 @@ def perform_installation(mountpoint):
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)
+ installation.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:
+ installation.drop_to_shell()
+ except:
+ pass
ask_user_questions()
perform_installation_steps()
-installation.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:
- installation.drop_to_shell()
- except:
- pass