summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Fstab.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Fstab.hs')
-rw-r--r--src/Propellor/Property/Fstab.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Propellor/Property/Fstab.hs b/src/Propellor/Property/Fstab.hs
index 60f11d8e..602276ea 100644
--- a/src/Propellor/Property/Fstab.hs
+++ b/src/Propellor/Property/Fstab.hs
@@ -35,7 +35,9 @@ mounted fs src mnt opts = tightenTargets $
-- This use of mountPoints, which is linux-only, is why this
-- property currently only supports linux.
mountnow = check (notElem mnt <$> mountPoints) $
- cmdProperty "mount" [mnt]
+ if fs == "swap"
+ then cmdProperty "swapon" [mnt]
+ else cmdProperty "mount" [mnt]
newtype SwapPartition = SwapPartition FilePath