summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Chroot/Util.hs
diff options
context:
space:
mode:
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