mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Use the mapper name to mount if it's a LUKS partition.
This commit is contained in:
parent
126ad300ae
commit
f5f73fbd4d
1 changed files with 13 additions and 5 deletions
|
@ -40,6 +40,14 @@ def mount_partitions(root_mount_point, partitions):
|
||||||
if fstype == "fat16" or fstype == "fat32":
|
if fstype == "fat16" or fstype == "fat32":
|
||||||
fstype = "vfat"
|
fstype = "vfat"
|
||||||
|
|
||||||
|
if partition["luksMapperName"]:
|
||||||
|
libcalamares.utils.mount(partition["luksMapperName"],
|
||||||
|
mount_point,
|
||||||
|
fstype,
|
||||||
|
partition.get("options", ""),
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
libcalamares.utils.mount(partition["device"],
|
libcalamares.utils.mount(partition["device"],
|
||||||
mount_point,
|
mount_point,
|
||||||
fstype,
|
fstype,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue