[fstab] work on #797 and #796

This commit is contained in:
Philip 2017-09-12 08:22:19 -04:00
parent 084a7ea651
commit bfcfcf7ee3

View File

@ -55,6 +55,7 @@ FS_MAP = {
"fat16": "vfat", "fat16": "vfat",
"fat32": "vfat", "fat32": "vfat",
"linuxswap": "swap", "linuxswap": "swap",
"linux-swap": "swap",
} }
@ -225,7 +226,7 @@ class FstabGenerator(object):
def generate_fstab_line_info(self, partition): def generate_fstab_line_info(self, partition):
""" Generates information for each fstab entry. """ """ Generates information for each fstab entry. """
filesystem = partition["fs"].lower().strip("-") filesystem = partition["fs"].lower()
has_luks = "luksMapperName" in partition has_luks = "luksMapperName" in partition
mount_point = partition["mountPoint"] mount_point = partition["mountPoint"]
disk_name = disk_name_for_partition(partition) disk_name = disk_name_for_partition(partition)