Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 17:34:13 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 17:34:13 +0200
commit512f0327f0d5eb9e507050ff9a4325e9728df705 (patch)
tree8aaec5a5b4a46ee24aa875e735ae65a73c9bff77 /archinstall
parenta0980afff1d2458d348e144cb0d8351f862564c1 (diff)
Experimenting with cache, carrying over .allow_formatting
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 84a4ff37..3e512034 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -142,8 +142,9 @@ class BlockDevice():
if partition in self.part_cache:
if self.part_cache[partition].size == old_partitions[partition].size and \
self.part_cache[partition].filesystem == old_partitions[partition].filesystem:
- print('Carrying over', self.part_cache[partition].target_mountpoint)
+ print('Carrying over', self.part_cache[partition].target_mountpoint, self.part_cache[partition].allow_formatting)
self.part_cache[partition].target_mountpoint = old_partitions[partition].target_mountpoint
+ self.part_cache[partition].allow_formatting = old_partitions[partition].allow_formatting
class Partition():
def __init__(self, path :str, block_device :BlockDevice, part_id=None, size=-1, filesystem=None, mountpoint=None, encrypted=False, autodetect_filesystem=True):