Browse Source

bring up lo upon adding netns

master
Ralph Rönnquist 1 year ago
parent
commit
30b4abe116
  1. 5
      overlay-boot

5
overlay-boot

@ -16,7 +16,10 @@ if [ -z "$UNSHARED" ] ; then
#
# Create the network namespace for the subhost, then trigger
# detached re-run with unshared mount namespace
[ -r /run/netns/$NAME ] || ip netns add $NAME
[ -r /run/netns/$NAME ] || {
ip netns add $NAME
ip netns exec $NAME ip link set lo up
}
exec env UNSHARED=yes unshare -m $0 $@ > $LOG 2>&1 &
echo "Logging to $LOG" >&2
exit 0

Loading…
Cancel
Save