summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Chroot/Util.hs
diff options
context:
space:
mode:
authorJoey Hess2015-09-02 11:13:36 -0700
committerJoey Hess2015-09-02 11:13:36 -0700
commitd2393d8141ac302eff5dc29d32d68014b630d166 (patch)
tree629d1e427e8dd53033bf8e3717e91497dcc51a3f /src/Propellor/Property/Chroot/Util.hs
parentbce9d314a94a1378ee35a4575aa7ecadf5967e62 (diff)
propellor spin
Diffstat (limited to 'src/Propellor/Property/Chroot/Util.hs')
-rw-r--r--src/Propellor/Property/Chroot/Util.hs4
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