01d495 Reexecute after installation, take ownership of /var/run/user

Authored and Committed by Lennart Poettering 14 years ago
1 file changed. 12 lines added. 1 lines removed.
    Reexecute after installation, take ownership of /var/run/user
    
        
file modified
+12 -1
systemd.spec CHANGED
@@ -2,7 +2,7 @@ Name: systemd
2
2
Url: http://www.freedesktop.org/wiki/Software/systemd
3
3
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4
4
Version: 8
5
- Release: 2%{?dist}
5
+ Release: 3%{?dist}
6
6
License: GPLv2+
7
7
Group: System Environment/Base
8
8
Summary: A System and Session Manager
@@ -115,9 +115,14 @@ touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel3.target
115
115
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel4.target
116
116
touch %{buildroot}%{_sysconfdir}/systemd/system/runlevel5.target
117
117
118
+ mkdir -p %{buildroot}%{_localstatedir}/run/user
119
+
118
120
%clean
119
121
rm -rf $RPM_BUILD_ROOT
120
122
123
+ %post
124
+ /bin/systemctl daemon-reexec
125
+
121
126
%post units
122
127
if [ $1 -eq 1 ] ; then
123
128
# Try to read default runlevel from the old inittab if it exists
@@ -190,6 +195,7 @@ fi
190
195
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
191
196
%{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml
192
197
%{_docdir}/systemd
198
+ %dir %{_localstatedir}/run/user
193
199
194
200
%files units
195
201
%defattr(-,root,root,-)
@@ -236,6 +242,11 @@ fi
236
242
%{_mandir}/man8/runlevel.*
237
243
238
244
%changelog
245
+ * Fri Aug 27 2010 Lennart Poettering <lpoetter@redhat.com> - 8-3
246
+ - Reexecute after installation, take ownership of /var/run/user
247
+ - https://bugzilla.redhat.com/show_bug.cgi?id=627457
248
+ - https://bugzilla.redhat.com/show_bug.cgi?id=627634
249
+
239
250
* Thu Aug 26 2010 Lennart Poettering <lpoetter@redhat.com> - 8-2
240
251
- Properly create default.target link
241
252