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-05-01 10:13:33 +0000
committerGitHub <noreply@github.com>2021-05-01 10:13:33 +0000
commit7f2334bbfecba513ce131986753e78b36dc95a9a (patch)
tree5ba03b7e2ecc37b72cb83f3a8908ab747028f695 /archinstall/lib
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 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 49bef1be..44462a21 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -624,3 +624,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