]> git.ipfire.org Git - thirdparty/iproute2.git/commit
arpd: create /var/lib/arpd on first use
authorMax Gautier <mg@max.gautier.name>
Mon, 18 Mar 2024 15:49:13 +0000 (16:49 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 28 Mar 2024 20:35:52 +0000 (13:35 -0700)
commitf740f5a165eb398322af1d2c56e0fcb90ac19c73
tree5ff8b76e07fdb5b43c12e5b3e3a15eea10d41dcf
parent037a3a0d66ef110a22720c23934bdee34191539f
arpd: create /var/lib/arpd on first use

The motivation is to build distributions packages without /var to go
towards stateless systems, see link below (TL;DR: provisionning anything
outside of /usr on boot).

We only try do create the database directory when it's in the default
location, and assume its parent (/var/lib in the usual case) exists.

Links: https://0pointer.net/blog/projects/stateless.html
Signed-off-by: Max Gautier <mg@max.gautier.name>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Makefile
misc/arpd.c