index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-11-23 23:09:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 00:09:33 +0100 |
commit | e729457b6c12a00b17207254ee72e98b78912f8d (patch) | |
tree | 554c13c7a363ccc5ef2c25873af15598df9a2ba3 /archinstall/lib/disk/blockdevice.py | |
parent | 29736c4a051d2c72bcbf0b20abdebc6992a92e4b (diff) |
-rw-r--r-- | archinstall/lib/disk/blockdevice.py | 4 |
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py index d8c34893..f8575de4 100644 --- a/archinstall/lib/disk/blockdevice.py +++ b/archinstall/lib/disk/blockdevice.py @@ -128,7 +128,7 @@ class BlockDevice: if part_id not in self.part_cache: # TODO: Force over-write even if in cache? if part_id not in self.part_cache or self.part_cache[part_id].size != part['size']: - self.part_cache[part_id] = Partition(root_path + part_id, self, part_id=part_id, size=part['size']) + self.part_cache[part_id] = Partition(root_path + part_id, self, part_id=part_id) return {k: self.part_cache[k] for k in sorted(self.part_cache)} @@ -156,7 +156,7 @@ class BlockDevice: @property def size(self): from .helpers import convert_size_to_gb - + output = json.loads(SysCommand(f"lsblk --json -b -o+SIZE {self.path}").decode('UTF-8')) for device in output['blockdevices']: |