Adriaan de Groot 8 years ago
parent b22bd67a5f
commit 47dcbefe2c

@ -262,12 +262,20 @@ class FstabGenerator(object):
check=check, check=check,
) )
return dict(device="UUID=" + partition["uuid"], if "luksMapperName" in partition:
mount_point=mount_point or "swap", return dict(device="/dev/mapper/" + partition["luksMapperName"],
fs=filesystem, mount_point=mount_point or "swap",
options=options, fs=filesystem,
check=check, options=options,
) check=check,
)
else:
return dict(device="UUID=" + partition["uuid"],
mount_point=mount_point or "swap",
fs=filesystem,
options=options,
check=check,
)
def print_fstab_line(self, dct, file=None): def print_fstab_line(self, dct, file=None):
""" Prints line to '/etc/fstab' file. """ """ Prints line to '/etc/fstab' file. """

Loading…
Cancel
Save