From e3d5b9e382d45ed2a7120e6216db84fd75567cc2bfe8da046df3081dc2ff0ce8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 15 Nov 2016 09:04:30 +0000 Subject: [PATCH] Accepting request 440248 from home:dimstar:Factory This resolves the issues reported when building against the latest systemd package (either you are responsible to pull in shadow or you can't rely on it being there) OBS-URL: https://build.opensuse.org/request/show/440248 OBS-URL: https://build.opensuse.org/package/show/Base:System/nfs-utils?expand=0&rev=173 --- nfs-utils.changes | 7 +++++++ nfs-utils.spec | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nfs-utils.changes b/nfs-utils.changes index c3a5ea8..f2a1692 100644 --- a/nfs-utils.changes +++ b/nfs-utils.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 14 14:51:30 UTC 2016 - dimstar@opensuse.org + +- Also ignore errors on the first chown call: this can happen + especially in the build system when shadow is not present and + the user has not been generated in the %pre phase. + ------------------------------------------------------------------- Fri Oct 21 00:09:04 UTC 2016 - nfbrown@suse.com diff --git a/nfs-utils.spec b/nfs-utils.spec index bcefe3a..0e7e512 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -178,7 +178,7 @@ useradd -r -c 'NFS statd daemon' \ %service_add_pre nfs %post -n nfs-client -chown statd:nogroup %{_localstatedir}/lib/nfs +chown statd:nogroup %{_localstatedir}/lib/nfs > /dev/null 2>&1 || : for i in state sm sm.bak; do chown -R statd %{_localstatedir}/lib/nfs/$i > /dev/null 2>&1 || : done