From d2393d8141ac302eff5dc29d32d68014b630d166 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 2 Sep 2015 11:13:36 -0700 Subject: propellor spin --- src/Propellor/Property/Chroot/Util.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/Propellor/Property/Chroot') 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 -- cgit v1.3-2-g0d8e