| Summary: | Save entropy during system install | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bill Nottingham <notting> |
| Component: | systemd | Assignee: | systemd-maint |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | johannbg, lpoetter, metherid, notting, plautrba, rvokal, systemd-maint, walters |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-02-11 02:02:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fixed in rawhide I'd say Anaconda *is* the right place to do this actually. At the moment, anyone who wants to generate generic images (docker images, ostree commits, VM images (vagrant/qcow2) etc) needs to[1] nuke this. [1] well, *should* since it's disingenuous to ship the same random seed to potentially many systems |
Description of problem: There's some discussion in an issue for a pre-systemd release about saving entropy during system installation so that there is *some* saved state. anaconda isn't exactly the right place to do it, so pushing to systemd. diff --git a/systemd.spec b/systemd.spec index 5e805ce..4144827 100644 --- a/systemd.spec +++ b/systemd.spec @@ -235,6 +235,9 @@ if [ $1 -eq 1 ] ; then remote-fs.target \ systemd-readahead-replay.service \ systemd-readahead-collect.service >/dev/null 2>&1 || : + + # Save some initial state for the random seed. + /lib/systemd/systemd-random-seed save else # This systemd service does not exist anymore, we now do it # internally in PID 1 Version-Release number of selected component (if applicable): any