index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2022-04-29 11:12:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 11:12:24 +0200 |
commit | fb76f46b774b11c8d501ba82617e1d6ff11ef2eb (patch) | |
tree | 77d68185c7d51c636d6460eb894273da47ec2622 /archinstall/lib/disk | |
parent | fc08aeef4e3f6ea7bd2f744217b8f2dee9b60c82 (diff) |
-rw-r--r-- | archinstall/lib/disk/blockdevice.py | 2 | ||||
-rw-r--r-- | archinstall/lib/disk/helpers.py | 2 | ||||
-rw-r--r-- | archinstall/lib/disk/mapperdev.py | 2 |
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py index 16ba0160..206c3b7e 100644 --- a/archinstall/lib/disk/blockdevice.py +++ b/archinstall/lib/disk/blockdevice.py @@ -141,7 +141,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) + self.part_cache[part_id] = Partition(root_path + part_id, block_device=self, part_id=part_id) return {k: self.part_cache[k] for k in sorted(self.part_cache)} diff --git a/archinstall/lib/disk/helpers.py b/archinstall/lib/disk/helpers.py index f9618b6c..0799cd49 100644 --- a/archinstall/lib/disk/helpers.py +++ b/archinstall/lib/disk/helpers.py @@ -241,7 +241,7 @@ def all_blockdevices(mappers=False, partitions=False, error=False) -> Dict[str, instances[path] = DMCryptDev(dev_path=path) elif path_info.get('PARTUUID') or path_info.get('PART_ENTRY_NUMBER'): if partitions: - instances[path] = Partition(path, BlockDevice(get_parent_of_partition(pathlib.Path(path)))) + instances[path] = Partition(path, block_device=BlockDevice(get_parent_of_partition(pathlib.Path(path)))) elif path_info.get('PTTYPE', False) is not False or path_info.get('TYPE') == 'loop': instances[path] = BlockDevice(path, path_info) elif path_info.get('TYPE') == 'squashfs': diff --git a/archinstall/lib/disk/mapperdev.py b/archinstall/lib/disk/mapperdev.py index 91ec6d25..32e3ac9b 100644 --- a/archinstall/lib/disk/mapperdev.py +++ b/archinstall/lib/disk/mapperdev.py @@ -46,7 +46,7 @@ class MapperDev: information = uevent(uevent_data) block_device = BlockDevice(get_parent_of_partition('/dev/' / pathlib.Path(information['DEVNAME']))) - return Partition(information['DEVNAME'], block_device) + return Partition(information['DEVNAME'], block_device=block_device) raise ValueError(f"Could not convert {self.mappername} to a real dm-crypt device") |