From 9f09b6236d33d68850f8d99d1ea482c47b47ae84 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Oct 2015 20:13:47 -0400 Subject: disk image finalization may work --- src/Propellor/Property/Mount.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Propellor/Property/Mount.hs') diff --git a/src/Propellor/Property/Mount.hs b/src/Propellor/Property/Mount.hs index 30d057f5..25984afa 100644 --- a/src/Propellor/Property/Mount.hs +++ b/src/Propellor/Property/Mount.hs @@ -36,5 +36,9 @@ unmountBelow d = do forM_ submnts umountLazy -- | Mounts a device. +mounted :: FsType -> Source -> FilePath -> Property NoInfo +mounted fs src mnt = property (mnt ++ " mounted") $ + toResult <$> liftIO (mount fs src mnt) + mount :: FsType -> Source -> FilePath -> IO Bool mount fs src mnt = boolSystem "mount" [Param "-t", Param fs, Param src, Param mnt] -- cgit v1.3-2-g0d8e