mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
Containers: Clean up veth interfaces
This commit is contained in:
parent
a7a08188bf
commit
ceb67cc9ef
@ -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…
Reference in New Issue
Block a user