packages: systemd/systemd.spec - generate machine-id in %post

megabajt megabajt at pld-linux.org
Mon May 2 17:43:42 CEST 2011


Author: megabajt                     Date: Mon May  2 15:43:42 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- generate machine-id in %post

---- Files affected:
packages/systemd:
   systemd.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: packages/systemd/systemd.spec
diff -u packages/systemd/systemd.spec:1.24 packages/systemd/systemd.spec:1.25
--- packages/systemd/systemd.spec:1.24	Mon May  2 15:34:19 2011
+++ packages/systemd/systemd.spec	Mon May  2 17:43:37 2011
@@ -162,10 +162,13 @@
 # them.
 rm -r $RPM_BUILD_ROOT%{_sysconfdir}/systemd/system/*.target.wants
 
+touch $RPM_BUILD_ROOT%{_sysconfdir}/machine-id
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
 
 %post units
@@ -203,6 +206,7 @@
 /etc/dbus-1/system.d/org.freedesktop.systemd1.conf
 %dir %{_sysconfdir}/systemd
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/systemd/system.conf
+%ghost %config(noreplace) %{_sysconfdir}/machine-id
 %dir /etc/xdg/systemd
 /etc/xdg/systemd/user
 %attr(755,root,root) /bin/systemd
@@ -327,6 +331,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2011/05/02 15:43:37  megabajt
+- generate machine-id in %post
+
 Revision 1.24  2011/05/02 13:34:19  megabajt
 - updated to 26
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/systemd/systemd.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list