rng-tools: start earlier in the boot process
cover rng-tools: start earlier in the boot process
From: Christopher Larson <[email protected]>
Entropy is needed earlier in the boot process in some cases, for example connman can require it, and rgd doesn't require much, so move it earlier in the boot process, 03 for sysvinit, and before sysinit for systemd.
The following changes since commit 83c9405df5748744ef673ac8757bb89d7050ad8d:
alsa-tools: rewrite packaging (2018-06-15 11:18:15 +0100)
are available in the git repository at:
[email protected]:kergoth/openembedded-core.git rng-tools-early
for you to fetch changes up to abb55c262e6dab31c0e77bf800e83cdba155fc13:
rng-tools: start earlier in the boot process (2018-06-16 02:05:09 +0500)
----------------------------------------------------------------
Christopher Larson (2):
rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS
rng-tools: start earlier in the boot process
meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 +++ meta/recipes-support/rng-tools/rng-tools_5.bb | 9 +-------- 2 files changed, 4 insertions(+), 8 deletions(-)
Signature · 1 line
2.11.1
PATCH 1/2 rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS
From: Christopher Larson <[email protected]>
This was added as the recipe didn't inherit systemd, but it does inherit systemd now.
--- meta/recipes-support/rng-tools/rng-tools_5.bb | 7 ------- 1 file changed, 7 deletions(-)
meta/recipes-support/rng-tools/rng-tools_5.bb +0 -7
@@ -16,13 +16,6 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/gkernel/${BP}.tar.gz \ SRC_URI[md5sum] = "6726cdc6fae1f5122463f24ae980dd68" SRC_URI[sha256sum] = "60a102b6603bbcce2da341470cad42eeaa9564a16b4490e7867026ca11a3078e" -# As the recipe doesn't inherit systemd.bbclass, we need to set this variable -# manually to avoid unnecessary postinst/preinst generated. -python () { - if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): - d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1") -} - inherit autotools update-rc.d systemd PACKAGECONFIG = "libgcrypt"
Signature · 1 line
2.11.1
PATCH 2/2 rng-tools: start earlier in the boot process
In reply to Christopher LarsonFrom: Christopher Larson <[email protected]>
Entropy is needed earlier in the boot process in some cases, for example connman can require it, and rgd doesn't require much, so move it earlier in the boot process, 03 for sysvinit, and before sysinit for systemd.
--- meta/recipes-support/rng-tools/rng-tools/rngd.service | 3 +++ meta/recipes-support/rng-tools/rng-tools_5.bb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
meta/recipes-support/rng-tools/rng-tools/rngd.service +3 -0
@@ -1,5 +1,8 @@ [Unit] Description=Hardware RNG Entropy Gatherer Daemon +DefaultDependencies=no +After=systemd-udev-settle.service +Before=sysinit.target [Service] ExecStart=@SBINDIR@/rngd -f -r /dev/urandom
meta/recipes-support/rng-tools/rng-tools_5.bb +1 -1
@@ -43,6 +43,6 @@ do_install_append() { } INITSCRIPT_NAME = "rng-tools" -INITSCRIPT_PARAMS = "start 30 2 3 4 5 . stop 30 0 6 1 ." +INITSCRIPT_PARAMS = "start 03 2 3 4 5 . stop 30 0 6 1 ." SYSTEMD_SERVICE_${PN} = "rngd.service"
Signature · 1 line
2.11.1