CumulusNetworks / ifupdown2

GNU General Public License v2.0
161 stars 75 forks source link

Ensure ifupdown2 runtime directory always exists (and debhelper 13 update) #282

Open OlivierB opened 11 months ago

OlivierB commented 11 months ago

The /run/network directory is used by ifupdown2 for locks and state files. This directory is created at service startup (networking). But if we want, for example, to use ifquery before network start, it fails. We can ensure that /run/network directory is always present with systemd-tmpfiles.

We could do it with systemd RuntimeDirectory in the networking service, but it does not seem to be the right method with the standalone mode.

Preliminary work : Debhelper update.

OlivierB commented 11 months ago

Hello,

I have split system configuration and codebase modification for the /run/network directory. The last commit on the codebase update is a very bad idea if ifupdown2 is built for non Debian system.

I wait for your decision to known if we can keep it.