Go to file
Chen Qi a8ebf23dde networkmanager: fix /etc/resolv.conf handling
The current handling of /etc/resolv.conf by NM has some problems.
When networkd is not configuring network, and there's 'ip=dhcp'
in kernel command line, the /run/NetworkManager/resolv.conf file
is not created, resulting in /etc/resolv.conf being a dead symlink.
This is because NM is treating the network interface as externally
configured and will not try to reconfigure it again.

This means if we want NM to work properly with /etc/resolv.conf,
we've got to either ensure there's no 'ip=dhcp' in kernel command
line, or we've got to ensure networkd is configuring network. This
is weird because normally we should not enable two network managers
at the same time. Note that NM syncs part of its codes with networkd,
which is the reason I think it happens to work when these two network
configuration tools are configuring the same interface at the same
time.

In fact, NM now works well with resolved. It sends the DNS info it
gets to resolved unconditionally by default (the behavior could be
disabled in configuration file).

Looking at the original commit that sets up the update-alternatives
mechanism, it says:
"""
  This brings the networkmanager in sync with how systemd-resolved and connman
  work. Additionally this allows it to function with a read-only rootFS.
"""
I guess the author was using systemd but disabling resolved, and the author
wanted to use read-only rootFS. In order to keep such combination still works,
change to use PACKAGECONFIG to handle things, and when 'man-resolv-conf' is
enabled, the above combination could still work.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-12-23 08:52:22 -08:00
contrib pw-am.sh: update to new patcwork system 2022-02-28 08:39:26 -08:00
meta-filesystems fatcat: Enable 64bit off_t 2022-12-17 11:01:26 -08:00
meta-gnome libstemmer: move recipe to meta-oe 2022-12-23 08:52:22 -08:00
meta-initramfs kexec-tools-klibc: Fix type mismatch in calls to dtb_set_initrd on mips 2022-09-11 20:42:05 -07:00
meta-multimedia pipewire: update 0.3.62 -> 0.3.63 2022-12-23 08:52:22 -08:00
meta-networking networkmanager: fix /etc/resolv.conf handling 2022-12-23 08:52:22 -08:00
meta-oe xdg-desktop-portal: add recipe 2022-12-23 08:52:22 -08:00
meta-perl libio-socket-ssl-perl: upgrade 2.076 -> 2.077 2022-12-05 09:16:24 -08:00
meta-python python3-rapidjson: add recipe 2022-12-13 09:18:18 -08:00
meta-webserver monkey: use git fetcher 2022-11-10 10:38:36 -08:00
meta-xfce thunar-archive-plugin: update 0.4.0 -> 0.5.0 2022-12-06 13:55:04 -08:00
.gitignore .gitignore: add *.pyc and *.pyo 2019-06-15 16:45:33 -07:00
COPYING.MIT add README and license for this layer 2011-02-13 16:47:32 +01:00
README Update maintainers 2018-08-27 10:53:58 -07:00

Collection of layers for the OE-core universe

Main layer maintainer: Khem Raj <raj.khem@gmail.com>

This repository is a collection of layers to suppliment OE-Core
with additional packages, Each layer have designated maintainer
Please see the respective READMEs in the layer subdirectories