diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-04-09 17:17:54 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-04-09 17:17:54 -0400 |
| commit | e976032e98788907052cae09be639a99d25de0d1 (patch) | |
| tree | 42cdeb1fee4ec56a2e06a549a0754e0d82f7e565 /src | |
| parent | 1e19ab948f06dbd3f256fc84f476698148dcff2b (diff) | |
propellor spin
Diffstat (limited to 'src')
| -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) |
