[packages/rpm-build-tools/netns-with-lo-addr] builder: add ipv6 addr to lo in netns too and bring interface up
atler
atler at pld-linux.org
Mon Oct 27 02:14:38 CET 2025
commit 09c6f96209400fdd035dffc7def59f49a5feb286
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Oct 27 02:13:34 2025 +0100
builder: add ipv6 addr to lo in netns too and bring interface up
builder.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/builder.sh b/builder.sh
index 3be34e2..6fbc894 100755
--- a/builder.sh
+++ b/builder.sh
@@ -153,7 +153,7 @@ REVERT_BROKEN_UPGRADE="yes"
IP=/sbin/ip
# disable network for rpm build tool, autodetect if it works (doesn't work in chroot and in vserver guest)
-unshare --user --net --map-current-user true 2> /dev/null && NONETWORK="unshare --user --net --map-root-user $SHELL -c 'test -x $IP && $IP a add 127.0.0.1/8 dev lo; exec unshare --map-user $(id -un) $SHELL'" || NONETWORK=""
+unshare --user --net --map-current-user true 2> /dev/null && NONETWORK="unshare --user --net --map-root-user $SHELL -c 'test -x $IP && $IP a add 127.0.0.1/8 dev lo && $IP a add ::1/128 dev lo noprefixroute; $IP l set lo up; exec unshare --map-user $(id -un) $SHELL'" || NONETWORK=""
if rpm --specsrpm 2>/dev/null; then
FETCH_BUILD_REQUIRES_RPMSPECSRPM="yes"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/09c6f96209400fdd035dffc7def59f49a5feb286
More information about the pld-cvs-commit
mailing list