Mh, actually the code in `/var/lib/dpkg/info/libnss-
systemd\:amd64.postinst` seems to do exactly that...
As per:
if ! grep -q -E -e '^group:[^#]*\s(systemd)(\s|#|$)' -e
'^gshadow:[^#]*\s(systemd)(\s|#|$)' -e '^passwd:[^#]*\s(systemd)(\s|#|$)' -e
'^shadow:[^#]*\s(systemd)(\s|#|$)' "${DPKG_ROOT}/etc/nsswitch.conf" ; then
# Installing passwd/systemd from libnss-systemd in position last
sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e
'/^passwd:\s[^#]*$/ s/$/ systemd/' -e '/^passwd:\s.*#/ s/#/ systemd #/'
# Installing group/systemd from libnss-systemd in position last
sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e
'/^group:\s[^#]*$/ s/$/ systemd/' -e '/^group:\s.*#/ s/#/ systemd #/'
# Installing shadow/systemd from libnss-systemd in position last
sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e
'/^shadow:\s[^#]*$/ s/$/ systemd/' -e '/^shadow:\s.*#/ s/#/ systemd #/'
# Installing gshadow/systemd from libnss-systemd in position
last
sed -E -i "${DPKG_ROOT}/etc/nsswitch.conf" -e
'/^gshadow:\s[^#]*$/ s/$/ systemd/' -e '/^gshadow:\s.*#/ s/#/ systemd #/'
fi
But... The check only runs if
/etc/nsswitch.conf.nss.${DPKG_MAINTSCRIPT_PACKAGE}-will-install is
there, and this only happens on new installation, not on configure...
So... Our systemd package should likely do the same of
`https://salsa.debian.org/gioele/dh-
nss/-/blob/debian/latest/autoscripts/preinst-nss` if configuring when
coming from a systemd version that is older than the one that introduced
the module too.
--
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gdm3 in Ubuntu.
https://bugs.launchpad.net/bugs/2121017
Title:
gdm3 49~beta doesn't start [unix_chkpwd: could not obtain user info
(gdm-greeter)] on systems installed before 2024
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/2121017/+subscriptions
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs