Ensure that the container root can always be accessed via /var/lib/containers

This commit is contained in:
Eelco Dolstra 2014-03-18 11:04:54 +01:00
parent 895bcdd1cb
commit 7b82d1ee27

View File

@ -172,6 +172,10 @@ in
/nix/var/nix/gcroots/per-container/${name}
''
+ optionalString (cfg.root != "/var/lib/containers/${name}") ''
ln -sfn "${cfg.root}" "/var/lib/containers/${name}"
''
+ optionalString cfg.privateNetwork ''
# Cleanup from last time.
ip netns del ${ns} 2> /dev/null || true