[lockdev] revert previous change and use %tmpfiles_create in %post

Jiří Popelka jpopelka at fedoraproject.org
Thu Nov 28 13:42:41 UTC 2013


commit e5985a76eebec3c2832010b5eac8eafd402434e8
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Thu Nov 28 14:42:21 2013 +0100

    revert previous change and use %tmpfiles_create in %post

 lockdev.spec |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/lockdev.spec b/lockdev.spec
index d12e55e..70aa34d 100644
--- a/lockdev.spec
+++ b/lockdev.spec
@@ -80,13 +80,11 @@ mkdir -p %{buildroot}%{_lockdir}
 %pre
 getent group lock >/dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 || :
 
-%post -p /sbin/ldconfig
-
 %post
 /sbin/ldconfig
 if [ $1 -eq 1 ] ; then
-  # for the time until first reboot
-  %tmpfiles_create
+# for the time until first reboot
+%tmpfiles_create
 fi
 
 %postun -p /sbin/ldconfig


More information about the scm-commits mailing list