When I restart the net interface inside a linux container I get: Cannot open "/proc/sys/net/ipv4/route/flush": No such file or directory This comes from the following of /lib/netifrc/net/iproute2.sh: ip -4 route flush table cache dev "${IFACE}" Would be great add an if to check if the flush file exists. Thanks
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=626cfdad15f9740208807bc436cb3915056c87b4 commit 626cfdad15f9740208807bc436cb3915056c87b4 Author: Robin H. Johnson <robbat2@gentoo.org> AuthorDate: 2020-05-31 05:42:22 +0000 Commit: Robin H. Johnson <robbat2@gentoo.org> CommitDate: 2020-05-31 05:42:22 +0000 net/iproute2: support containers without /proc/sys/net/ipv4/route/flush Bug: https://bugs.gentoo.org/648600 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> net/iproute2.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)