rootfs: Link /etc/resolv.conf to /run
All checks were successful
dustin/metricspi/pipeline/head This commit looks good

By default, Buildroot creates `/etc/resolv.conf` as a symlink to
`/tmp/resolv.conf`.  This allows it to be modified at runtime, even if
`/` is on a read-only filesystem (assuming `/tmp` is not).
Unfortunately, this causes problems for systemd units with
`PrivateTmp=yes`, because they are not able to read the `resolv.conf`
file.

A more appropriate location for the writable `resolv.conf` is `/run`.
This filesystem is not affected by the `PrivateTmp` setting, and is
always available to units.
This commit is contained in:
2022-08-08 21:28:18 -05:00
parent 7fddc6fef5
commit f69ad39547

View File

@@ -0,0 +1 @@
../run/resolv.conf