Drop scriptlet for nss-myhostname

The glibc default has nss-myhostname since mid-2018, bug #1581809.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-07-12 22:07:37 +02:00
parent 65984c876a
commit 6fd99c397b

View File

@ -623,14 +623,6 @@ fi
function mod_nss() {
if [ -f "$1" ] ; then
# sed-fu to add myhostname to hosts line
grep -E -q '^hosts:.* myhostname' "$1" ||
sed -i.bak -e '
/^hosts:/ !b
/\<myhostname\>/ b
s/[[:blank:]]*$/ myhostname/
' "$1" &>/dev/null || :
# Add nss-systemd to passwd and group
grep -E -q '^(passwd|group):.* systemd' "$1" ||
sed -i.bak -r -e '