Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:12:23 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
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?
That's a hell of a bad design in my opinion.
The tar error will be related to the restore / write to disk, not
reading from ""tape or command error.
You might explore an option to cause tar to exclude /etc/resolv.conf
from the restore job. I'm not sure what that would look like as I'm
usually only messing with exclude during backups.
You might be able to mess with some even more esoteric (bind) mount
options, but that will be quite similar to the chattr dance.
I'd go smack Network Manager with a bigger bat.
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.
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?
That's a hell of a bad design in my opinion.
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?
none: NetworkManager will not modify resolv.conf. This implies
rc-manager unmanaged
If you configure dns=none or make /etc/resolv.conf immutable with
chattr +i, NetworkManager will ignore this setting and always choose unmanaged (below).
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?
Clarifying, after some replies that I've seen.
I was surprised by, and doubted, the idea that Network Manager might not
be able to be configured to leave /etc/resolv.conf alone.
But my reply was really intended for Peter. I don't quite understand
what Peter read (when saying "the Network Manager man page says to
chattr") to overlook the fact that the manpage is fairly clear in the
only place it talks about chattr, that chattr is not your only option.