rootfs: Link /etc/resolv.conf to /run
All checks were successful
dustin/metricspi/pipeline/head This commit looks good
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:
1
rootfs/overlay/etc/resolv.conf
Symbolic link
1
rootfs/overlay/etc/resolv.conf
Symbolic link
@@ -0,0 +1 @@
|
||||
../run/resolv.conf
|
||||
Reference in New Issue
Block a user