Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.

coreos-base/coreos: remove rng-tool dependency#1700

Merged
jepio merged 2 commits intomainfrom
jepio/remove-rng-tools
Mar 9, 2022
Merged

coreos-base/coreos: remove rng-tool dependency#1700
jepio merged 2 commits intomainfrom
jepio/remove-rng-tools

Conversation

@jepio
Copy link
Copy Markdown
Contributor

@jepio jepio commented Mar 8, 2022

coreos-base/coreos: remove rng-tool dependency

rng-tools does not appear to be necessary for booting in virtual machine
environments in 2022. Back in the day the boot process would block if
there was not enough entropy to seed the system random pool, but over
the years the linux kernel made sure that the pool is force seeded if
userspace does not do so one it's own. Remove rng-tool as it is not
needed and it would require work to make sure it works (detection of
tpm/hwrng/intel cpu instructions).

How to use

[ describe what reviewers need to do in order to validate this PR ]

Testing done

[Describe the testing you have done before submitting this PR. Please include both the commands you issued as well as the output you got.]

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

rng-tools does not appear to be necessary for booting in virtual machine
environments in 2022. Back in the day the boot process would block if
there was not enough entropy to seed the system random pool, but over
the years the linux kernel made sure that the pool is force seeded if
userspace does not do so one it's own. Remove rng-tool as it is not
needed and it would require work to make sure it works (detection of
tpm/hwrng/intel cpu instructions).
@jepio jepio requested a review from a team March 8, 2022 15:16
Copy link
Copy Markdown
Contributor

@pothos pothos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about rngd.service, or? A changelog entry would be good, like - Removed rngd.service because it is not essential anymore for the kernel to boot fast in VM environments

The user visible effect of rng-tool removal is that rngd is no longer
started in the initramfs.
@jepio jepio force-pushed the jepio/remove-rng-tools branch from a6894b6 to 0b8fc6d Compare March 9, 2022 12:06
@jepio
Copy link
Copy Markdown
Contributor Author

jepio commented Mar 9, 2022

Added the changelog entry

@jepio jepio merged commit 5c8c17b into main Mar 9, 2022
@jepio jepio deleted the jepio/remove-rng-tools branch March 9, 2022 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants