diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-04-06 19:43:48 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-04-06 19:43:48 -0400 |
| commit | 544ad71f3fce7d394945b447fcaf938d8067c5b3 (patch) | |
| tree | 05b7ffcbffe9aad0d429d51dbb27a598b458abdb /src | |
| parent | f07d53694fb9a1636dc33586d3d474d8c252e497 (diff) | |
listed property should work on !Linux
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Fstab.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Propellor/Property/Fstab.hs b/src/Propellor/Property/Fstab.hs index 7bf18726..8196377f 100644 --- a/src/Propellor/Property/Fstab.hs +++ b/src/Propellor/Property/Fstab.hs @@ -16,10 +16,9 @@ import Utility.Table -- | Ensures that </etc/fstab> contains a line mounting the specified -- `Source` on the specified `MountPoint`. -listed :: FsType -> Source -> MountPoint -> MountOpts -> Property Linux -listed fs src mnt opts = tightenTargets $ - "/etc/fstab" `File.containsLine` l - `describe` (mnt ++ " mounted by fstab") +listed :: FsType -> Source -> MountPoint -> MountOpts -> Property UnixLike +listed fs src mnt opts = "/etc/fstab" `File.containsLine` l + `describe` (mnt ++ " mounted by fstab") where l = intercalate "\t" [src, mnt, fs, formatMountOpts opts, dump, passno] dump = "0" |
