summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Hess2017-04-09 17:17:54 -0400
committerJoey Hess2017-04-09 17:17:54 -0400
commite976032e98788907052cae09be639a99d25de0d1 (patch)
tree42cdeb1fee4ec56a2e06a549a0754e0d82f7e565 /src
parent1e19ab948f06dbd3f256fc84f476698148dcff2b (diff)
propellor spin
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Bootstrap.hs4
1 files changed, 3 insertions, 1 deletions
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)