3
0

- Restore the check that prevents systemd-tmpfiles to run during transactional updates

The check has been mistakenly dropped during the switch to file-triggers.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd-rpm-macros?expand=0&rev=96
This commit is contained in:
Franck Bui 2023-06-16 13:11:13 +00:00 committed by Git OBS Bridge
parent 25a2295a3a
commit 8cd9f77cbf
2 changed files with 9 additions and 2 deletions

View File

@ -226,7 +226,7 @@ fi \
%tmpfiles_create() \
%{expand:%%{?__systemd_someargs_%#:%%__systemd_someargs_%# tmpfiles_create}} \
[ -d /run/systemd/system ] && [ -x /usr/bin/systemd-tmpfiles ] && \
[ -z "${TRANSACTIONAL_UPDATE}" ] && [ -x /usr/bin/systemd-tmpfiles ] && \
/usr/bin/systemd-tmpfiles --create %{?*} || : \
%{nil}
@ -273,7 +273,7 @@ SYSTEMD_INLINE_EOF\
#
%sysusers_create_package() \
%{expand:%%{?!__systemd_twoargs_%#:%%{error:The %%%%sysusers_create_package macro requires two arguments}}} \
[ -x /usr/bin/systemd-sysusers ] && \
[ -z "${TRANSACTIONAL_UPDATE}" ] && [ -x /usr/bin/systemd-tmpfiles ] && \
/usr/bin/systemd-sysusers --replace=%_sysusersdir/%1.conf - <<SYSTEMD_INLINE_EOF || : \
%(cat %2) \
SYSTEMD_INLINE_EOF\

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jun 16 13:00:59 UTC 2023 - Franck Bui <fbui@suse.com>
- Restore the check that prevents systemd-tmpfiles to run during transactional updates
The check has been mistakenly dropped during the switch to file-triggers.
-------------------------------------------------------------------
Mon May 15 09:21:26 UTC 2023 - Franck Bui <fbui@suse.com>