projects
/
rrq
/
overlay-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ab61e
)
bring up lo upon adding netns
author
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Mon, 21 Mar 2022 03:52:01 +0000
(14:52 +1100)
committer
Ralph Ronnquist
<ralph.ronnquist@gmail.com>
Mon, 21 Mar 2022 03:52:01 +0000
(14:52 +1100)
overlay-boot
patch
|
blob
|
history
diff --git
a/overlay-boot
b/overlay-boot
index f068b43b06fa4ac32168551c331a6974e551b139..d683017aee8ea7712ab019293f42b67f100d23b4 100755
(executable)
--- a/
overlay-boot
+++ b/
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