- Don't create /var/lib/systemd/random-seed in %post (bsc#1181458)

To make sure that the same seed is not replicated when installing from a
  'golden' image.
  For regular installations the random seed file is initialized by the installer
  itself (bsc#1174964). Even if it didn't, the random seed file would be created
  on first boot anyway.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1318
This commit is contained in:
Franck Bui 2022-10-20 14:06:35 +00:00 committed by Git OBS Bridge
parent 7d1ef01b92
commit 7e9a47a630
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Oct 19 07:23:51 UTC 2022 - Franck Bui <fbui@suse.com>
- Don't create /var/lib/systemd/random-seed in %post (bsc#1181458)
To make sure that the same seed is not replicated when installing from a
'golden' image.
For regular installations the random seed file is initialized by the installer
itself (bsc#1174964). Even if it didn't, the random seed file would be created
on first boot anyway.
-------------------------------------------------------------------
Wed Oct 12 18:35:47 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -987,9 +987,6 @@ pam-config --add --systemd || :
%sysusers_create systemd-journal.conf
%sysusers_create systemd-timesync.conf
[ -e %{_localstatedir}/lib/random-seed ] && mv %{_localstatedir}/lib/random-seed %{_localstatedir}/lib/systemd/ || :
/usr/lib/systemd/systemd-random-seed save || :
systemctl daemon-reexec || :
# Reexecute user manager instances (if any). It is asynchronous but it