Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-14 18:00:27 +0200
committerAnton Hvornum <anton@hvornum.se>2021-05-14 18:00:27 +0200
commit16441f11cb4f8af9a879f85ecaab370a8561dade (patch)
tree023aebcee5724e82380f6b2d636960567a8e1fe6 /examples
parent33a3f803913eab8f503d6b131d7679fa663acbb2 (diff)
parentda0af2294a36f73936473a138639a94958b06460 (diff)
Merge branch 'master' of github.com:archlinux/archinstall into torxed-kernel-params
Diffstat (limited to 'examples')
-rw-r--r--examples/__init__.py0
-rw-r--r--examples/guided.py8
2 files changed, 7 insertions, 1 deletions
diff --git a/examples/__init__.py b/examples/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/examples/__init__.py
diff --git a/examples/guided.py b/examples/guided.py
index c281d033..40bebabf 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -7,6 +7,9 @@ if archinstall.arguments.get('help'):
print("See `man archinstall` for help.")
exit(0)
+# For support reasons, we'll log the disk layout pre installation to match against post-installation layout
+archinstall.log(f"Disk states before installing: {archinstall.disk_layouts()}", level=archinstall.LOG_LEVELS.Debug)
+
def ask_user_questions():
"""
First, we'll ask the user for a bunch of user input.
@@ -385,5 +388,8 @@ def perform_installation(mountpoint):
except:
pass
+ # For support reasons, we'll log the disk layout post installation (crash or no crash)
+ archinstall.log(f"Disk states after installing: {archinstall.disk_layouts()}", level=archinstall.LOG_LEVELS.Debug)
+
ask_user_questions()
-perform_installation_steps()
+perform_installation_steps() \ No newline at end of file