Containers: Clean up veth interfaces

This commit is contained in:
Eelco Dolstra 2014-08-12 03:05:27 +02:00
parent a7a08188bf
commit ceb67cc9ef

View File

@ -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