Use the mapper name to mount if it's a LUKS partition.
This commit is contained in:
parent
126ad300ae
commit
f5f73fbd4d
@ -40,11 +40,19 @@ def mount_partitions(root_mount_point, partitions):
|
|||||||
if fstype == "fat16" or fstype == "fat32":
|
if fstype == "fat16" or fstype == "fat32":
|
||||||
fstype = "vfat"
|
fstype = "vfat"
|
||||||
|
|
||||||
libcalamares.utils.mount(partition["device"],
|
if partition["luksMapperName"]:
|
||||||
mount_point,
|
libcalamares.utils.mount(partition["luksMapperName"],
|
||||||
fstype,
|
mount_point,
|
||||||
partition.get("options", ""),
|
fstype,
|
||||||
)
|
partition.get("options", ""),
|
||||||
|
)
|
||||||
|
|
||||||
|
else:
|
||||||
|
libcalamares.utils.mount(partition["device"],
|
||||||
|
mount_point,
|
||||||
|
fstype,
|
||||||
|
partition.get("options", ""),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
Loading…
Reference in New Issue
Block a user