summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
authorJoey Hess2017-12-20 13:24:43 -0400
committerJoey Hess2017-12-20 13:25:44 -0400
commitad3cc8fb46b051e45ed51126abec4fda79a4deb6 (patch)
tree7378b9de44c888e054542de5c79512e9a9052591 /src/Propellor
parent776dcf4834a9eb97b1d70b6a3e17ff2173e4bd92 (diff)
Parted: Fix names used for FAT and VFAT partitions.
Use "fat32" for both; these are not distinguished at the partition table level. This commit was sponsored by Henrik Riomar on Patreon.
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Parted/Types.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Propellor/Property/Parted/Types.hs b/src/Propellor/Property/Parted/Types.hs
index 3350e008..e32df310 100644
--- a/src/Propellor/Property/Parted/Types.hs
+++ b/src/Propellor/Property/Parted/Types.hs
@@ -106,6 +106,8 @@ instance PartedVal Bool where
pval True = "on"
pval False = "off"
+-- This is used for creating partitions, not formatting partitions,
+-- so it's ok to use eg, fat32 for both FAT and VFAT.
instance PartedVal Partition.Fs where
pval Partition.EXT2 = "ext2"
pval Partition.EXT3 = "ext3"
@@ -113,7 +115,7 @@ instance PartedVal Partition.Fs where
pval Partition.BTRFS = "btrfs"
pval Partition.REISERFS = "reiserfs"
pval Partition.XFS = "xfs"
- pval Partition.FAT = "fat"
- pval Partition.VFAT = "vfat"
+ pval Partition.FAT = "fat32"
+ pval Partition.VFAT = "fat32"
pval Partition.NTFS = "ntfs"
pval Partition.LinuxSwap = "linux-swap"