Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648600 - net-misc/netifrc: issues in linux container (lxd)
Summary: net-misc/netifrc: issues in linux container (lxd)
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-23 10:14 UTC by Agostino Sarubbo
Modified: 2020-05-31 05:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2018-02-23 10:14:34 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2020-05-31 05:42:38 UTC
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(-)