meta-google: rng-tools: update service name
Upstream has changed the service name from `rngd.service` to
`rng-tools.service`. Change the name of the "nojitter" service
to match.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie7cef3f0b9106db38e6a399494a85d7e5fc5e3eb
diff --git a/meta-google/recipes-support/rng-tools/rng-tools_%.bbappend b/meta-google/recipes-support/rng-tools/rng-tools_%.bbappend
index b534790..abf0113 100644
--- a/meta-google/recipes-support/rng-tools/rng-tools_%.bbappend
+++ b/meta-google/recipes-support/rng-tools/rng-tools_%.bbappend
@@ -2,18 +2,18 @@
SRC_URI:append:gbmc = " file://default"
-SYSTEMD_SERVICE:${PN}:append:gbmc = " rngd-nojitter.service"
+SYSTEMD_SERVICE:${PN}:append:gbmc = " rng-tools-nojitter.service"
do_install:append:gbmc() {
- install -m 0644 ${D}${systemd_system_unitdir}/rngd.service \
- ${D}${systemd_system_unitdir}/rngd-nojitter.service
- # Don't enable jitter in rngd-nojitter
+ install -m 0644 ${D}${systemd_system_unitdir}/rng-tools.service \
+ ${D}${systemd_system_unitdir}/rng-tools-nojitter.service
+ # Don't enable jitter in rng-tools-nojitter
sed -i 's,\$EXTRA_ARGS,-x jitter \$EXTRA_ARGS,' \
- ${D}${systemd_system_unitdir}/rngd-nojitter.service
+ ${D}${systemd_system_unitdir}/rng-tools-nojitter.service
# Run the jitter enabled service if this one fails
- sed -i '/^\[Unit\]$/aOnFailure=rngd.service\nConflicts=rngd.service' \
- ${D}${systemd_system_unitdir}/rngd-nojitter.service
+ sed -i '/^\[Unit\]$/aOnFailure=rng-tools.service\nConflicts=rng-tools.service' \
+ ${D}${systemd_system_unitdir}/rng-tools-nojitter.service
# Don't run the jitter service by default
- sed -i '/^WantedBy=/d' ${D}${systemd_system_unitdir}/rngd.service
+ sed -i '/^WantedBy=/d' ${D}${systemd_system_unitdir}/rng-tools.service
}