libnss-resolve not automatically installed
I'm currently on branch dunfell and using systemd-resolved.
I want to have glibc's NSS resolver functions using systemd-resolved.
I've noticed that the plugin libnss-resolve.so.2 was not in my image
In systemd_244.5.bb, nss-resolve is in PACKAGECONFIG by default.
libnss-resolve is build and packaged, but not installed by default.
To install the missing library libnss-resolve.so.2, I've added
IMAGE_INSTALL_append = " libnss-resolve"
to my image recipe, but I wonder, if this is the right place or necessary
My assumption was that having nss-resolve in PACKAGECONFIG will
also install the related library, which is obviously not the case.
Furthermore, I had to write an append-file for base-files, such that
/etc/nsswitch.conf contains the following line
hosts: resolve [!UNAVAIL=return] files dns myhostname
Possibly, I've overlooked something essential.
I'd be very happy, if someone can shed some light on this issue.