Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-16 11:48:24 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-16 11:48:24 +0200
commita7c0142099066791d48240815c47c07772f9e025 (patch)
treeb594661ce257f0e474750ff36fb94e34a23dc337 /archinstall/lib
parent65c6807cc99a4c5bbd1ec8097b2472669475cf7d (diff)
Adding debug data to the log. It will now contain lsblk before and after the installation to help with detecting any potential information. Also removed a traceback log that was for debugging purposes.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index bada4076..c23bc6ac 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -222,7 +222,7 @@ class Partition():
def encrypted(self, value :bool):
if value:
log(f'Marking {self} as encrypted: {value}', level=LOG_LEVELS.Debug)
- log(f"Callstrack when marking the partition: {''.join(traceback.format_stack())}", level=LOG_LEVELS.Debug)
+ #log(f"Callstrack when marking the partition: {''.join(traceback.format_stack())}", level=LOG_LEVELS.Debug)
self._encrypted = value
@@ -611,3 +611,11 @@ def get_filesystem_type(path):
return b''.join(handle).strip().decode('UTF-8')
except SysCallError:
return None
+
+def disk_layouts():
+ try:
+ handle = sys_command(f"lsblk -f -o+TYPE,SIZE -J")
+ return json.loads(b''.join(handle).decode('UTF-8'))
+ except SysCallError as err:
+ log(f"Could not return disk layouts: {err}")
+ return None \ No newline at end of file