summaryrefslogtreecommitdiff
path: root/morphlib/builder2.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-10-15 17:47:46 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-10-24 14:31:15 +0000
commit11669de95de7e8a9ad8b41fa5e9be3fbb845c52e (patch)
treeec31d36ce5e414ab6b9a6ed49a5c5b2ccbcb6771 /morphlib/builder2.py
parent0ed18258e2fa760eae780fee741bb95eeb467bc4 (diff)
downloadmorph-11669de95de7e8a9ad8b41fa5e9be3fbb845c52e.tar.gz
deploy extensions: Don't crash if someone builds at the same time
If a build happens, it creates a new network namespace, and if this happens while you have a disk image mounted, then you can't remove the mount-point, because the other namespace is using it. We can avoid the other namespace keeping this mount-point open by creating the disk image in a private mount namespace, so it never sees it. The nicest way to do this is to have every extension run in a private mount namespace, since you'd have to have extensions re-exec themselves, since the appropriate system calls aren't exposed very well.
Diffstat (limited to 'morphlib/builder2.py')
0 files changed, 0 insertions, 0 deletions