diff --git a/docs/manual/migrating.adoc b/docs/manual/migrating.adoc index 5e8c3ea2c6..1b55bc6173 100644 --- a/docs/manual/migrating.adoc +++ b/docs/manual/migrating.adoc @@ -195,3 +195,17 @@ host-mender-artifact. See +board/mender/x86_64/post-image-efi.sh+ for an example of how to generate the bootstrap.mender file. See https://docs.mender.io/release-information/release-notes-changelog/mender-client#mender-3-5-0-1[the release notes], under features, for more information. + +[[migrating-resolv.conf]] +=== Migrating to 2025.05 + +In 2025.05, for SYS-V-like systems (busybox, sysvinit, openrc), the +`/etc/resolv.conf` symlink was changed to point to `/run/resolv.conf`, +rather than the legacy location in `/tmp`. Users of a custom `fstab` +will need to ensure that `/run` is writable before resolv.conf is +created (usually by a DHCP client), either with an entry for `/run`, +or with a startup script. + +Note that systems using systemd are not impacted: systemd always ensures +that `/run` is writable. Systems further using systemd-resolved already +had a `/etc/resolv.conf` that pointed into `/run` anyway. diff --git a/support/testing/tests/package/test_podman.py b/support/testing/tests/package/test_podman.py index 4d9b19310e..9d86a06129 100644 --- a/support/testing/tests/package/test_podman.py +++ b/support/testing/tests/package/test_podman.py @@ -71,13 +71,6 @@ class PodmanBase(infra.basetest.BRTest): self.assertRunOk("touch /etc/subuid /etc/subgid") self.assertRunOk("usermod --add-subuids 10000-75535 foo") self.assertRunOk("usermod --add-subgids 10000-75535 foo") - # If /etc/resolv.conf is a symlink, it has to point either into /etc - # (or deep in there), or into /run (or deep in there), as only those - # would eventually get used by podman/netavark for # rootless containers. - # This is considered a workaround to the current situation; resolv,conf - # should ultimately be in /run rather than /tmp. - self.assertRunOk("mv /tmp/resolv.conf /run/resolv.conf") - self.assertRunOk("ln -sf /run/resolv.conf /etc/resolv.conf") # First, test podman as root (the current user) self.do_podman() diff --git a/system/skeleton/etc/resolv.conf b/system/skeleton/etc/resolv.conf index 71f6f96576..2ce2910f08 120000 --- a/system/skeleton/etc/resolv.conf +++ b/system/skeleton/etc/resolv.conf @@ -1 +1 @@ -../tmp/resolv.conf \ No newline at end of file +../run/resolv.conf \ No newline at end of file