Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-06-04 15:08:04 +0200
committerAnton Hvornum <anton@hvornum.se>2021-06-04 15:08:04 +0200
commit71b6efab69cab9bd97c647c7ccc7667149967a5c (patch)
tree36d294b739d08a0b1da5fde1aee315cea87d751a /examples/guided.py
parent7d60287a3d24303a4e4518b75058ffd2f1feca8d (diff)
parenta4033a7d3a94916f2b4972d212f9d0069fca39cd (diff)
Merge branch 'master' of github.com:archlinux/archinstall into torxed-rework-partitioning
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index da451b51..f48b5d0a 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -5,7 +5,7 @@ import time
import archinstall
from archinstall.lib.general import run_custom_user_commands
-from archinstall.lib.hardware import has_uefi, AVAILABLE_GFX_DRIVERS
+from archinstall.lib.hardware import *
from archinstall.lib.networking import check_mirror_reachable
from archinstall.lib.profiles import Profile
@@ -16,6 +16,13 @@ if os.getuid() != 0:
print("Archinstall requires root privileges to run. See --help for more.")
exit(1)
+# Log various information about hardware before starting the installation. This might assist in troubleshooting
+archinstall.log(f"Hardware model detected: {archinstall.sys_vendor()} {archinstall.product_name()}; UEFI mode: {archinstall.has_uefi()}", level=logging.DEBUG)
+archinstall.log(f"Processor model detected: {archinstall.cpu_model()}", level=logging.DEBUG)
+archinstall.log(f"Memory statistics: {archinstall.mem_available()} available out of {archinstall.mem_total()} total installed", level=logging.DEBUG)
+archinstall.log(f"Virtualization detected: {archinstall.virtualization()}; is VM: {archinstall.is_vm()}", level=logging.DEBUG)
+archinstall.log(f"Graphics devices detected: {archinstall.graphics_devices().keys()}", level=logging.DEBUG)
+
# 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=logging.DEBUG)