From b8d1dfb3dcddb37c2223c8022b3ebdc98d05c8fb Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Aug 30 2017 11:52:22 +0000 Subject: Drop %post chown rpcuser /var/lib/nfs/statd Digging through the git history quickly, this seems to be a workaround for an ancient upgrade issue. We really shouldn't be doing this on new installs, and really not on on every upgrade either. The particular reason I'm making this change is that rpm-ostree explicitly errors out when scripts fail (because we can), and this will fail in an rpm-ostree environment as the real `/var` is not accessible to scripts. More information: - https://ostree.readthedocs.io/en/latest/manual/adapting-existing/ - https://bugzilla.redhat.com/show_bug.cgi?id=1352154 --- diff --git a/nfs-utils.spec b/nfs-utils.spec index 4728d53..83263fc 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -220,9 +220,6 @@ fi %systemd_post nfs-config %systemd_post nfs-server -# Make sure statd used the correct uid/gid. -chown -R rpcuser:rpcuser /var/lib/nfs/statd - %preun if [ $1 -eq 0 ]; then %systemd_preun nfs-client.target