From e976032e98788907052cae09be639a99d25de0d1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 9 Apr 2017 17:17:54 -0400 Subject: propellor spin --- src/Propellor/Property/Bootstrap.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Propellor/Property/Bootstrap.hs b/src/Propellor/Property/Bootstrap.hs index 8d0c4db9..fa240782 100644 --- a/src/Propellor/Property/Bootstrap.hs +++ b/src/Propellor/Property/Bootstrap.hs @@ -94,7 +94,9 @@ exposeTrueLocaldir a = ifM inChroot where movebindmount from to = do run "mount" [Param "--bind", File from, File to] - run "umount" [File from] + -- Have to lazy unmount, because the propellor process + -- is running in the localdir that it's unmounting.. + run "umount" [Param "-l", File from] run cmd ps = unlessM (boolSystem cmd ps) $ error $ "exposeTrueLocaldir failed to run " ++ show (cmd, ps) -- cgit v1.3-2-g0d8e