I recently upgraded the Ubuntu kernel from 4.18.0-15 to 4.18.0-18. As a result, it silently overrode my
systemctl disable NetworkManager.service
setting, and enabled it again. (I am using only systemd-networkd
.)
Is there a way to prevent this configuration change on kernel update? If not, why not?
cat /etc/netplan/*.yaml
./etc/systemd/network/*
and/etc/systemd/resolved.conf
. The reasons for that is explained here: askubuntu.com/a/1114904/723997 . Basically, I found thatsystemd-networkd
alone works better withsystemd-resolved
. Specifically changing system settings caused DNS to fail whenNetworkManager
was involved. By the way, thanks for your comment.