diff --git a/systemd.spec b/systemd.spec index 94c236a..70e8e63 100644 --- a/systemd.spec +++ b/systemd.spec @@ -159,7 +159,6 @@ Obsoletes: systemd-compat-libs < 230 Obsoletes: nss-myhostname < 0.4 Provides: nss-myhostname = 0.4 Provides: nss-myhostname%{_isa} = 0.4 -Requires(post): coreutils Requires(post): sed Requires(post): grep Requires(post): /usr/bin/getent @@ -601,12 +600,12 @@ export SYSTEMD_NSS_BYPASS_SYNTHETIC=1 if getent passwd nfsnobody &>/dev/null; then test -f /etc/systemd/dont-synthesize-nobody || { echo 'Detected system with nfsnobody defined, creating /etc/systemd/dont-synthesize-nobody' - touch /etc/systemd/dont-synthesize-nobody + : >/etc/systemd/dont-synthesize-nobody || : } elif getent passwd nobody 2>/dev/null | grep -v 'nobody:[x*]:65534:65534:.*:/:/sbin/nologin' &>/dev/null; then test -f /etc/systemd/dont-synthesize-nobody || { echo 'Detected system with incompatible nobody defined, creating /etc/systemd/dont-synthesize-nobody' - touch /etc/systemd/dont-synthesize-nobody + : >/etc/systemd/dont-synthesize-nobody || : } fi