Drop scriptlet for nss-myhostname
The glibc default has nss-myhostname since mid-2018, bug #1581809.
This commit is contained in:
parent
65984c876a
commit
6fd99c397b
@ -623,14 +623,6 @@ fi
|
|||||||
|
|
||||||
function mod_nss() {
|
function mod_nss() {
|
||||||
if [ -f "$1" ] ; then
|
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
|
# Add nss-systemd to passwd and group
|
||||||
grep -E -q '^(passwd|group):.* systemd' "$1" ||
|
grep -E -q '^(passwd|group):.* systemd' "$1" ||
|
||||||
sed -i.bak -r -e '
|
sed -i.bak -r -e '
|
||||||
|
Loading…
Reference in New Issue
Block a user