Adriaan de Groot 2017-09-04 06:33:01 -04:00
parent b22bd67a5f
commit 47dcbefe2c

View File

@ -262,6 +262,14 @@ class FstabGenerator(object):
check=check,
)
if "luksMapperName" in partition:
return dict(device="/dev/mapper/" + partition["luksMapperName"],
mount_point=mount_point or "swap",
fs=filesystem,
options=options,
check=check,
)
else:
return dict(device="UUID=" + partition["uuid"],
mount_point=mount_point or "swap",
fs=filesystem,