Containers: Clean up veth interfaces
This commit is contained in:
parent
b99af5579e
commit
878b738333
@ -168,9 +168,13 @@ in
|
|||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
# Clean up existing machined registration.
|
# Clean up existing machined registration and interfaces.
|
||||||
machinectl terminate "$INSTANCE" 2> /dev/null || true
|
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
|
mkdir -p -m 0755 $root/var/lib
|
||||||
|
|
||||||
# Create a named pipe to get a signal when the container
|
# Create a named pipe to get a signal when the container
|
||||||
|
Loading…
x
Reference in New Issue
Block a user