From 0c027f613039db54bc87fb6de63c0ffe253cabf2 Mon Sep 17 00:00:00 2001 From: unitexe Date: Mon, 23 Feb 2026 08:25:47 -0600 Subject: Introduce meta-unit-virtualization Primary motivation for this is removing observability containers from beaglebone black because of RAM limitations. Images can now include the observability containers by adding `observability` to `IMAGE_FEATURES`. --- .../recipes-core/systemd/systemd-regkeygen.bb | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 meta-unit-virtualization/recipes-core/systemd/systemd-regkeygen.bb (limited to 'meta-unit-virtualization/recipes-core/systemd/systemd-regkeygen.bb') diff --git a/meta-unit-virtualization/recipes-core/systemd/systemd-regkeygen.bb b/meta-unit-virtualization/recipes-core/systemd/systemd-regkeygen.bb new file mode 100644 index 0000000..ee53401 --- /dev/null +++ b/meta-unit-virtualization/recipes-core/systemd/systemd-regkeygen.bb @@ -0,0 +1,31 @@ +SUMMARY = "Systemd service for generating TLS key and cert for distribution" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${UNIT_VIRTUALIZATION_LAYERDIR}/LICENSE;md5=a77c12e0c0e8a14cebb1494195720ccc" + +SYSTEMD_SERVICE:${PN} = "regkeygen.service" + +SRC_URI = "\ + file://regkeygen.service \ + file://regkeygen.sh \ +" + +RDEPENDS:${PN}:append = " add-user-svc" + +S = "${UNPACKDIR}" + +do_install() { + install -D -p -m0644 ${UNPACKDIR}/regkeygen.service ${D}${systemd_system_unitdir}/regkeygen.service + install -D -p -m0755 ${UNPACKDIR}/regkeygen.sh ${D}${bindir}/regkeygen.sh +} + +inherit systemd + +FILES:${PN} = "\ + ${systemd_system_unitdir} \ + ${bindir} \ +" + +RDEPENDS:${PN} = "\ + openssl \ + ca-certificates \ +" -- cgit v1.2.3