From 482b2c0da270995509c9a3ec8221a91ac73dd843 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 24 Sep 2014 18:13:05 +0200 Subject: [PATCH] Fix fstype names for mount -t syntax. --- src/modules/mount/main.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py index 2000240d3..c94c35cb0 100644 --- a/src/modules/mount/main.py +++ b/src/modules/mount/main.py @@ -31,9 +31,17 @@ def mount_partitions(root_mount_point, partitions): # Create mount point with `+` rather than `os.path.join()` because # `partition["mountPoint"]` starts with a '/'. mount_point = root_mount_point + partition["mountPoint"] + + fstype = partition.get("fs", "") + if fstype == "fat16": + fstype = "msdos" + if fstype == "fat32": + fstype = "vfat" + libcalamares.utils.mount( - partition["device"], mount_point, - partition.get("fs", ""), + partition["device"], + mount_point, + fstype, partition.get("options", "") )