diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-09-02 11:13:36 -0700 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-09-02 11:13:36 -0700 |
| commit | d2393d8141ac302eff5dc29d32d68014b630d166 (patch) | |
| tree | 629d1e427e8dd53033bf8e3717e91497dcc51a3f /src/Propellor/Property/Chroot | |
| parent | bce9d314a94a1378ee35a4575aa7ecadf5967e62 (diff) | |
propellor spin
Diffstat (limited to 'src/Propellor/Property/Chroot')
| -rw-r--r-- | src/Propellor/Property/Chroot/Util.hs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Propellor/Property/Chroot/Util.hs b/src/Propellor/Property/Chroot/Util.hs index 73cf094a..ea0df780 100644 --- a/src/Propellor/Property/Chroot/Util.hs +++ b/src/Propellor/Property/Chroot/Util.hs @@ -4,7 +4,6 @@ import Propellor.Property.Mount import Utility.Env import Control.Applicative -import Control.Monad import System.Directory -- When chrooting, it's useful to ensure that PATH has all the standard @@ -23,6 +22,5 @@ stdPATH = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -- mounted within it. removeChroot :: FilePath -> IO () removeChroot c = do - submnts <- mountPointsBelow c - forM_ submnts umountLazy + unmountBelow c removeDirectoryRecursive c |
