From 2efd4aff5c45c2932f4fec793367a6f9f3da086f Mon Sep 17 00:00:00 2001 From: demmm Date: Sun, 11 Jan 2015 08:53:23 -0500 Subject: [PATCH] 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. --- src/modules/fstab/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fstab/main.py b/src/modules/fstab/main.py index cc40407f2..68a6551b4 100644 --- a/src/modules/fstab/main.py +++ b/src/modules/fstab/main.py @@ -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)