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-01 10:13:33 +0000
committerGitHub <noreply@github.com>2021-05-01 10:13:33 +0000
commit7f2334bbfecba513ce131986753e78b36dc95a9a (patch)
tree5ba03b7e2ecc37b72cb83f3a8908ab747028f695 /examples
parentb58bec202ab47259d5a3855032aca70fa8f36b91 (diff)
parentea0d0a88174dbf7d8cad7d957ab3fd2ca00e02a4 (diff)
Merge pull request #409 from archlinux/torxed-partitioning
Adds partition layout to the install logs before and after installation
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py8
1 files changed, 7 insertions, 1 deletions
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