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)
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
Depends on:
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: ---


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/
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):

commit 626cfdad15f9740208807bc436cb3915056c87b4
Author:     Robin H. Johnson <>
AuthorDate: 2020-05-31 05:42:22 +0000
Commit:     Robin H. Johnson <>
CommitDate: 2020-05-31 05:42:22 +0000

    net/iproute2: support containers without /proc/sys/net/ipv4/route/flush
    Signed-off-by: Robin H. Johnson <>

 net/ | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)