Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-05-11 09:53:18 +0200
committerAnton Hvornum <anton.feeds@gmail.com>2021-05-11 09:53:18 +0200
commit20d9858cf608047aeb4f7d2511e2163c04f921de (patch)
treebda2035d12b2f2e146cc5504d50c18d654c3f7e6 /archinstall/lib/disk.py
parentdd52bfb3a7f6f7a150e46f7c99d538e26de60276 (diff)
Spelling errors, and filtered the output a bit.
Diffstat (limited to 'archinstall/lib/disk.py')
-rw-r--r--archinstall/lib/disk.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index ab3560a9..30b66835 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -256,7 +256,7 @@ class Partition():
output = b"".join(sys_command(f"sfdisk --json {self.block_device.path}"))
output = json.loads(output.decode('UTF-8'))
- for partition in output.get('partitionstable', {}).get('partitions', []):
+ for partition in output.get('partitiontable', {}).get('partitions', []):
if partition['node'] == self.path:
return partition['start']# * self.sector_size
@@ -265,8 +265,8 @@ class Partition():
# TODO: Verify that the logic holds up, that 'size' is the size without 'start' added to it.
output = b"".join(sys_command(f"sfdisk --json {self.block_device.path}"))
output = json.loads(output.decode('UTF-8'))
-
- for partition in output.get('partitionstable', {}).get('partitions', []):
+
+ for partition in output.get('partitiontable', {}).get('partitions', []):
if partition['node'] == self.path:
return partition['size']# * self.sector_size
@@ -289,7 +289,7 @@ class Partition():
# }
# }
- for partition in output.get('partitionstable', {}).get('partitions', []):
+ for partition in output.get('partitiontable', {}).get('partitions', []):
if partition['node'] == self.path:
return partition.get('bootable', False)