Package: iproute2
Version: 4.20.0-2
Severity: normal

Dear Maintainer,

Currently, iproute2 is built with the default NETNS_RUN_DIR of
/var/run/netns[1].  Consequentially, if /var is a separate filesystem,
it is not possible to use ip netns to manage network namespaces early
in boot before /var is mounted[2], because the symlink from /var/run to
/run does not exist.

This can be fixed by adding the following line to debian/rules under
the definition of KERNEL_INCLUDE[3]:

export NETNS_RUN_DIR=/run/netns

Thanks,

Andrew

[1] https://sources.debian.org/src/iproute2/4.20.0-2/Makefile/#L19

[2] for example, in a udev rule to move interfaces to a different namespace

[3] https://sources.debian.org/src/iproute2/4.20.0-2/debian/rules/#L23

Reply via email to