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:
authorcodefiles <11915375+codefiles@users.noreply.github.com>2023-09-26 04:57:45 -0400
committerGitHub <noreply@github.com>2023-09-26 10:57:45 +0200
commit717a22371fd25aac10d1f435b65842e800fd9d7e (patch)
treeb1da060c4525f0d0352359a0f1031c3cd6212769 /archinstall/lib/disk/device_handler.py
parentc427391543d464856c8153d17ddeef2c693fcf95 (diff)
Fix `mountpoint` for pre-mounted disk configuration (#2113)
* Fix `mountpoint` for pre-mounted disk configuration * Add missing commas
Diffstat (limited to 'archinstall/lib/disk/device_handler.py')
-rw-r--r--archinstall/lib/disk/device_handler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 9646103f..4cb35c03 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -594,7 +594,9 @@ class DeviceHandler(object):
if is_subpath(mountpoint, base_mountpoint):
path = Path(part_info.disk.device.path)
part_mods.setdefault(path, [])
- part_mods[path].append(PartitionModification.from_existing_partition(part_info))
+ part_mod = PartitionModification.from_existing_partition(part_info)
+ part_mod.mountpoint = mountpoint.root / mountpoint.relative_to(base_mountpoint)
+ part_mods[path].append(part_mod)
break
device_mods: List[DeviceModification] = []