Fix fstype names for mount -t syntax.
This commit is contained in:
parent
e7995ad540
commit
482b2c0da2
@ -31,9 +31,17 @@ def mount_partitions(root_mount_point, partitions):
|
|||||||
# Create mount point with `+` rather than `os.path.join()` because
|
# Create mount point with `+` rather than `os.path.join()` because
|
||||||
# `partition["mountPoint"]` starts with a '/'.
|
# `partition["mountPoint"]` starts with a '/'.
|
||||||
mount_point = root_mount_point + partition["mountPoint"]
|
mount_point = root_mount_point + partition["mountPoint"]
|
||||||
|
|
||||||
|
fstype = partition.get("fs", "")
|
||||||
|
if fstype == "fat16":
|
||||||
|
fstype = "msdos"
|
||||||
|
if fstype == "fat32":
|
||||||
|
fstype = "vfat"
|
||||||
|
|
||||||
libcalamares.utils.mount(
|
libcalamares.utils.mount(
|
||||||
partition["device"], mount_point,
|
partition["device"],
|
||||||
partition.get("fs", ""),
|
mount_point,
|
||||||
|
fstype,
|
||||||
partition.get("options", "")
|
partition.get("options", "")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user