Grant Taylor <gtay...@gentoo.tnetconsulting.net> writes:

> On 11/5/24 9:38 AM, Peter Humphrey wrote:
>> The Network Manager man page says to 'chattr +i /etc/resolv.conf', so I did,
>> and that one move enabled the wireless network to work as it should.
>
> What?!?!?!  Network Manager can't be made to keep it's hands off of
> /etc/resolv.conf so the workaround is to leverage file system features to 
> break
> Network Manager's hands when it tries to touch the file?

https://www.networkmanager.dev/docs/api/latest/NetworkManager.conf.html
under the dns key in the main section:

> none: NetworkManager will not modify resolv.conf. This implies
> rc-manager unmanaged

FOTM, doing a FTS over all manuals (which is slow because man-pages are
awful):
~$ man -K chattr
--Man-- next: rm(1) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: ostree-prepare-root(1) [ view (return) | skip (Ctrl-D) | quit 
(Ctrl-C) ]
--Man-- next: chattr(1) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: systemd-dissect(1) [ view (return) | skip (Ctrl-D) | quit 
(Ctrl-C) ]
--Man-- next: socat1(1) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: btrfs-property(8) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) 
]
--Man-- next: utime(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: ioctl_iflags(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: fallocate(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: statx(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: utimensat(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: mount(2) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: archive_read_disk(3) [ view (return) | skip (Ctrl-D) | quit 
(Ctrl-C) ]
--Man-- next: archive_write_disk(3) [ view (return) | skip (Ctrl-D) | quit 
(Ctrl-C) ]
--Man-- next: ext3(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: tmpfiles.d(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: sysupdate.d(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: nm-system-settings.conf(5) [ view (return) | skip (Ctrl-D) | quit 
(Ctrl-C) ]
--Man-- next: slapd-relay(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: slapo-rwm(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: slapd-meta(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]
--Man-- next: btrfs(5) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]

nm-system-settings.conf says:

> If you configure dns=none or make /etc/resolv.conf immutable with
> chattr +i, NetworkManager will ignore this setting and always choose
> unmanaged (below).

so, certainly not what was said above..
-- 
Arsen Arsenović

Attachment: signature.asc
Description: PGP signature

Reply via email to