mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
Containers: Clean up veth interfaces
This commit is contained in:
parent
b99af5579e
commit
878b738333
1 changed files with 5 additions and 1 deletions
|
@ -168,9 +168,13 @@ in
|
|||
|
||||
preStart =
|
||||
''
|
||||
# Clean up existing machined registration.
|
||||
# Clean up existing machined registration and interfaces.
|
||||
machinectl terminate "$INSTANCE" 2> /dev/null || true
|
||||
|
||||
if [ "$PRIVATE_NETWORK" = 1 ]; then
|
||||
ip link del dev "ve-$INSTANCE" 2> /dev/null || true
|
||||
fi
|
||||
|
||||
mkdir -p -m 0755 $root/var/lib
|
||||
|
||||
# Create a named pipe to get a signal when the container
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue