Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/device_handler.py
diff options
context:
space:
mode:
authorDaniel Girtler <girtler.daniel@gmail.com>2024-03-08 00:42:25 +1100
committerGitHub <noreply@github.com>2024-03-07 14:42:25 +0100
commit21dd295259e26580faa259dfe32d8e9554ae8933 (patch)
tree4f0e05e41a1d343c255d3712274ceea596829f34 /archinstall/lib/disk/device_handler.py
parent9b1fd2e44f0b08188a609edaefe696c00869a8b8 (diff)
Fix 2337 (and similar) - Ignore existing partitions (#2342)
* Fix 2337 * Update
Diffstat (limited to 'archinstall/lib/disk/device_handler.py')
-rw-r--r--archinstall/lib/disk/device_handler.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 5b97f25d..59ee150d 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -296,15 +296,15 @@ class DeviceHandler(object):
the formatting functionality and in essence the support for the given filesystem.
"""
- # don't touch existing partitions
- filtered_part = [p for p in device_mod.partitions if not p.exists()]
+ # only verify partitions that are being created or modified
+ create_or_modify_parts = [p for p in device_mod.partitions if p.is_create_or_modify()]
- self._validate_partitions(filtered_part)
+ self._validate_partitions(create_or_modify_parts)
# make sure all devices are unmounted
self._umount_all_existing(device_mod.device_path)
- for part_mod in filtered_part:
+ for part_mod in create_or_modify_parts:
# partition will be encrypted
if enc_conf is not None and part_mod in enc_conf.partitions:
self._perform_enc_formatting(