Use swap mountpoint

Having swap set at "none" makes hibernating not possible.
AFAIK, no filesystem/partition sets mountpoint as "none" nor has any other besides swap an empty mountpoint at the stage where the fstab module is called.
Tests so far show this change creates a working fstab when using a swap partition.
This commit is contained in:
demmm 2015-01-11 08:53:23 -05:00
parent fe44633e0c
commit 2efd4aff5c

View File

@ -129,7 +129,7 @@ class FstabGenerator(object):
return dict(
device="UUID=" + partition["uuid"],
mount_point=mount_point or "none",
mount_point=mount_point or "swap",
fs=fs,
options=options,
check=check)