-
Bug
-
Resolution: Not a Bug
-
Normal
-
rhel-8.9.0
-
None
-
Moderate
-
rhel-sst-network-management
-
ssg_networking
-
3
-
False
-
-
No
-
Red Hat Enterprise Linux
-
None
-
-
None
-
None
-
Release Note Not Required
-
-
All
-
None
What were you trying to do that didn't work?
A customer implemented readonly-root through following the documentation.
Such configuration leads to not letting NetworkManager update /etc/resolv.conf when the network interface is in DHCP, because NetworkManager creates a temporary file /etc/resolv.conf.XXX, then renames it.
With readonly-root, /etc/resolv.conf is writable (because it's on tmpfs automatically) but since NetworkManager creates a temporary file first, this doesn't work.
See error in the journal:
[...] NetworkManager[765]: <warn> [1702384116.2012] dns-mgr: could not commit DNS changes: Failed to create file “/etc/resolv.conf.TFEYF2”: Read-only file system
Please work with readonly-root maintainers to find a solution.
Please provide the package NVR for which bug is seen:
NetworkManager-1.40.16-9.el8.x86_64
How reproducible:
Always.
Steps to reproduce
- Install a system then enable readonly-root
- Keep the network interface in DHCP
- Reboot
Expected results
/etc/resolv.conf updated, no warning.
Actual results
/etc/resolv.conf not updated.