Ensure that the container root can always be accessed via /var/lib/containers
This commit is contained in:
parent
895bcdd1cb
commit
7b82d1ee27
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue