summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Fstab.hs
diff options
context:
space:
mode:
authorNicolas Schodet2017-10-12 22:08:56 +0200
committerNicolas Schodet2017-10-12 22:38:37 +0200
commitf2e902313ae02804df55c3e9584ddf88c4f889f1 (patch)
tree4bbc1fe7a618fe03a6b1297405ea58e8893bf832 /src/Propellor/Property/Fstab.hs
parent2d9e17dbcb7494cfcdffee53ccd85fb958d652b5 (diff)
Fstab.mounted now creates mount point and always tries to mountfstab-mounted
Diffstat (limited to 'src/Propellor/Property/Fstab.hs')
-rw-r--r--src/Propellor/Property/Fstab.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Propellor/Property/Fstab.hs b/src/Propellor/Property/Fstab.hs
index 29b85426..53ed4fba 100644
--- a/src/Propellor/Property/Fstab.hs
+++ b/src/Propellor/Property/Fstab.hs
@@ -26,7 +26,8 @@ import Utility.Table
mounted :: FsType -> Source -> MountPoint -> MountOpts -> Property Linux
mounted fs src mnt opts = tightenTargets $
listed fs src mnt opts
- `onChange` mountnow
+ `before` mountnow
+ `requires` File.dirExists mnt
where
-- This use of mountPoints, which is linux-only, is why this
-- property currently only supports linux.