All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] rng-tools: start earlier in the boot process
@ 2018-06-21 21:08 Christopher Larson
  2018-06-21 21:08 ` [PATCH 1/2] rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS Christopher Larson
  2018-06-21 21:08 ` [PATCH 2/2] rng-tools: start earlier in the boot process Christopher Larson
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Larson @ 2018-06-21 21:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

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:

  git@github.com: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(-)

-- 
2.11.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS
  2018-06-21 21:08 [PATCH 0/2] rng-tools: start earlier in the boot process Christopher Larson
@ 2018-06-21 21:08 ` Christopher Larson
  2018-06-21 21:08 ` [PATCH 2/2] rng-tools: start earlier in the boot process Christopher Larson
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Larson @ 2018-06-21 21:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

This was added as the recipe didn't inherit systemd, but it does inherit
systemd now.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 meta/recipes-support/rng-tools/rng-tools_5.bb | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb
index b3c9fd97455..24d545dc3fa 100644
--- a/meta/recipes-support/rng-tools/rng-tools_5.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_5.bb
@@ -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"
-- 
2.11.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] rng-tools: start earlier in the boot process
  2018-06-21 21:08 [PATCH 0/2] rng-tools: start earlier in the boot process Christopher Larson
  2018-06-21 21:08 ` [PATCH 1/2] rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS Christopher Larson
@ 2018-06-21 21:08 ` Christopher Larson
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher Larson @ 2018-06-21 21:08 UTC (permalink / raw)
  To: openembedded-core; +Cc: Christopher Larson

From: Christopher Larson <chris_larson@mentor.com>

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.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
 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(-)

diff --git a/meta/recipes-support/rng-tools/rng-tools/rngd.service b/meta/recipes-support/rng-tools/rng-tools/rngd.service
index b94ad50209c..cb8102442d6 100644
--- a/meta/recipes-support/rng-tools/rng-tools/rngd.service
+++ b/meta/recipes-support/rng-tools/rng-tools/rngd.service
@@ -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
diff --git a/meta/recipes-support/rng-tools/rng-tools_5.bb b/meta/recipes-support/rng-tools/rng-tools_5.bb
index 24d545dc3fa..6765667a59b 100644
--- a/meta/recipes-support/rng-tools/rng-tools_5.bb
+++ b/meta/recipes-support/rng-tools/rng-tools_5.bb
@@ -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"
-- 
2.11.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-21 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-21 21:08 [PATCH 0/2] rng-tools: start earlier in the boot process Christopher Larson
2018-06-21 21:08 ` [PATCH 1/2] rng-tools: drop unnecessary INHIBIT_UPDATERCD_BBCLASS Christopher Larson
2018-06-21 21:08 ` [PATCH 2/2] rng-tools: start earlier in the boot process Christopher Larson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.