- Allow the sysusers config files shipped by systemd rpms to be
overriden during system installation (bsc#1171962) - While at it, add a comment to explain why we don't use %sysusers_create in %pre and why it should be safe in %post. OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1160
This commit is contained in:
parent
3f77d1f341
commit
809be49d24
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 25 16:30:40 UTC 2021 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- Allow the sysusers config files shipped by systemd rpms to be
|
||||
overriden during system installation (bsc#1171962)
|
||||
|
||||
- While at it, add a comment to explain why we don't use
|
||||
%sysusers_create in %pre and why it should be safe in %post.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 20 20:19:27 UTC 2021 - Franck Bui <fbui@suse.com>
|
||||
|
||||
|
@ -865,10 +865,16 @@ fi
|
||||
pam-config --add --systemd || :
|
||||
%endif
|
||||
|
||||
%sysusers_create %{_sysusersdir}/systemd.conf
|
||||
# systemd-sysusers is not available in %pre so this needs to be done
|
||||
# in %post. However this shouldn't be an issue since all files the
|
||||
# main package ships are owned by root.
|
||||
%sysusers_create systemd.conf
|
||||
|
||||
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
|
||||
/usr/lib/systemd/systemd-random-seed save || :
|
||||
|
||||
systemctl daemon-reexec || :
|
||||
|
||||
%journal_catalog_update
|
||||
%tmpfiles_create
|
||||
|
||||
@ -1039,7 +1045,8 @@ fi
|
||||
%service_add_pre systemd-journal-upload.service
|
||||
|
||||
%post journal-remote
|
||||
%sysusers_create %{_sysusersdir}/systemd-remote.conf
|
||||
# Assume that all files shipped by systemd-journal-remove are owned by root.
|
||||
%sysusers_create systemd-remote.conf
|
||||
%service_add_post systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
|
||||
%service_add_post systemd-journal-remote.socket systemd-journal-remote.service
|
||||
%service_add_post systemd-journal-upload.service
|
||||
|
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 25 16:30:40 UTC 2021 - Franck Bui <fbui@suse.com>
|
||||
|
||||
- Allow the sysusers config files shipped by systemd rpms to be
|
||||
overriden during system installation (bsc#1171962)
|
||||
|
||||
- While at it, add a comment to explain why we don't use
|
||||
%sysusers_create in %pre and why it should be safe in %post.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 20 20:19:27 UTC 2021 - Franck Bui <fbui@suse.com>
|
||||
|
||||
|
11
systemd.spec
11
systemd.spec
@ -863,10 +863,16 @@ fi
|
||||
pam-config --add --systemd || :
|
||||
%endif
|
||||
|
||||
%sysusers_create %{_sysusersdir}/systemd.conf
|
||||
# systemd-sysusers is not available in %pre so this needs to be done
|
||||
# in %post. However this shouldn't be an issue since all files the
|
||||
# main package ships are owned by root.
|
||||
%sysusers_create systemd.conf
|
||||
|
||||
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
|
||||
/usr/lib/systemd/systemd-random-seed save || :
|
||||
|
||||
systemctl daemon-reexec || :
|
||||
|
||||
%journal_catalog_update
|
||||
%tmpfiles_create
|
||||
|
||||
@ -1037,7 +1043,8 @@ fi
|
||||
%service_add_pre systemd-journal-upload.service
|
||||
|
||||
%post journal-remote
|
||||
%sysusers_create %{_sysusersdir}/systemd-remote.conf
|
||||
# Assume that all files shipped by systemd-journal-remove are owned by root.
|
||||
%sysusers_create systemd-remote.conf
|
||||
%service_add_post systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
|
||||
%service_add_post systemd-journal-remote.socket systemd-journal-remote.service
|
||||
%service_add_post systemd-journal-upload.service
|
||||
|
Loading…
Reference in New Issue
Block a user