diff options
Diffstat (limited to 'src/Propellor/Property/Bootstrap.hs')
| -rw-r--r-- | src/Propellor/Property/Bootstrap.hs | 4 |
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) |
