- Make sure the build process won't create /var/log/journal

- /var/log/journal/remote is owned by systemd-journal-remote

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1193
This commit is contained in:
Franck Bui 2021-09-24 12:59:13 +00:00 committed by Git OBS Bridge
parent 7132b721b8
commit 55eebaeb1b
4 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 24 12:56:31 UTC 2021 - Franck Bui <fbui@suse.com>
- Make sure the build process won't create /var/log/journal
- /var/log/journal/remote is owned by systemd-journal-remote
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 24 09:28:38 UTC 2021 - Franck Bui <fbui@suse.com> Fri Sep 24 09:28:38 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -619,6 +619,7 @@ Have fun with these services at your own risk.
-Ddefault-hierarchy=unified \ -Ddefault-hierarchy=unified \
-Ddefault-kill-user-processes=false \ -Ddefault-kill-user-processes=false \
-Drc-local=/etc/init.d/boot.local \ -Drc-local=/etc/init.d/boot.local \
-Dcreate-log-dirs=false \
-Dbump-proc-sys-fs-nr-open=false \ -Dbump-proc-sys-fs-nr-open=false \
-Ddebug-shell=/bin/bash \ -Ddebug-shell=/bin/bash \
-Dseccomp=auto \ -Dseccomp=auto \
@ -1365,9 +1366,6 @@ fi
%{_pam_moduledir}/pam_systemd.so %{_pam_moduledir}/pam_systemd.so
%ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal/ %ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal/
%if %{with sysvcompat}
%doc %{_localstatedir}/log/README
%endif
%if %{with gnuefi} %if %{with gnuefi}
%dir %{_prefix}/lib/systemd/boot %dir %{_prefix}/lib/systemd/boot
@ -1776,6 +1774,7 @@ fi
%{_mandir}/man8/systemd-journal-remote.* %{_mandir}/man8/systemd-journal-remote.*
%{_mandir}/man8/systemd-journal-upload.* %{_mandir}/man8/systemd-journal-upload.*
%{_datadir}/systemd/gatewayd %{_datadir}/systemd/gatewayd
%ghost %dir %{_localstatedir}/log/journal/remote
%endif %endif
%if %{with networkd} || %{with resolved} %if %{with networkd} || %{with resolved}

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 24 12:56:31 UTC 2021 - Franck Bui <fbui@suse.com>
- Make sure the build process won't create /var/log/journal
- /var/log/journal/remote is owned by systemd-journal-remote
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 24 09:28:38 UTC 2021 - Franck Bui <fbui@suse.com> Fri Sep 24 09:28:38 UTC 2021 - Franck Bui <fbui@suse.com>

View File

@ -617,6 +617,7 @@ Have fun with these services at your own risk.
-Ddefault-hierarchy=unified \ -Ddefault-hierarchy=unified \
-Ddefault-kill-user-processes=false \ -Ddefault-kill-user-processes=false \
-Drc-local=/etc/init.d/boot.local \ -Drc-local=/etc/init.d/boot.local \
-Dcreate-log-dirs=false \
-Dbump-proc-sys-fs-nr-open=false \ -Dbump-proc-sys-fs-nr-open=false \
-Ddebug-shell=/bin/bash \ -Ddebug-shell=/bin/bash \
-Dseccomp=auto \ -Dseccomp=auto \
@ -1363,9 +1364,6 @@ fi
%{_pam_moduledir}/pam_systemd.so %{_pam_moduledir}/pam_systemd.so
%ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal/ %ghost %dir %attr(2755, root, systemd-journal) %{_localstatedir}/log/journal/
%if %{with sysvcompat}
%doc %{_localstatedir}/log/README
%endif
%if %{with gnuefi} %if %{with gnuefi}
%dir %{_prefix}/lib/systemd/boot %dir %{_prefix}/lib/systemd/boot
@ -1774,6 +1772,7 @@ fi
%{_mandir}/man8/systemd-journal-remote.* %{_mandir}/man8/systemd-journal-remote.*
%{_mandir}/man8/systemd-journal-upload.* %{_mandir}/man8/systemd-journal-upload.*
%{_datadir}/systemd/gatewayd %{_datadir}/systemd/gatewayd
%ghost %dir %{_localstatedir}/log/journal/remote
%endif %endif
%if %{with networkd} || %{with resolved} %if %{with networkd} || %{with resolved}