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