From 690feba3812579f965a4321660af88941ce2039e Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 28 Jan 2016 14:52:10 -0800 Subject: [PATCH] Add rng-tools and start rngd.service by default (#1258516) This will help improve the entropy situation with non-x86 hardware. rngd will add entropy from hardware rng sources. Resolves: rhbz#1258516 --- share/templates.d/99-generic/runtime-install.tmpl | 1 + share/templates.d/99-generic/runtime-postinstall.tmpl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/share/templates.d/99-generic/runtime-install.tmpl b/share/templates.d/99-generic/runtime-install.tmpl index 762f5363..c7d57f6c 100644 --- a/share/templates.d/99-generic/runtime-install.tmpl +++ b/share/templates.d/99-generic/runtime-install.tmpl @@ -107,6 +107,7 @@ installpkg mt-st smartmontools installpkg hdparm pcmciautils %endif installpkg libmlx4 rdma +installpkg rng-tools ## translations & language packs installpkg python3-dnf-langpacks diff --git a/share/templates.d/99-generic/runtime-postinstall.tmpl b/share/templates.d/99-generic/runtime-postinstall.tmpl index 07c52f55..2c6d2567 100644 --- a/share/templates.d/99-generic/runtime-postinstall.tmpl +++ b/share/templates.d/99-generic/runtime-postinstall.tmpl @@ -29,6 +29,9 @@ symlink /lib/systemd/system/anaconda.target etc/systemd/system/default.target mkdir etc/systemd/system/local-fs.target.wants/ symlink /lib/systemd/system/tmp.mount etc/systemd/system/local-fs.target.wants/tmp.mount +## Start rngd +symlink /lib/systemd/system/rngd.service etc/systemd/system/basic.target.wants/rngd.service + ## Disable unwanted systemd services systemctl disable systemd-readahead-collect.service \ systemd-readahead-replay.service \