Hello, I am struggling with something I couldn’t find any solution for so far.
I am trying to make a very simple recipe that does this: - Drop an openvpn configuration file in /etc/openvpn/test.conf - Make the systemd service [email protected] enabled by default The recipe itself depends on openvpn, and so, it doesn’t, by itself, provide the [email protected] , which comes with openvpn. Dropping the openvpn configuration file in the rootfs is easy, but I can’t manage to make the recipe to enable the service. I’ve tried adding this to my recipe: inherit systemd SYSTEMD_AUTO_ENABLE = "enable" SYSTEMD_SERVICE_${PN} = "[email protected]" But bitbake fails on this recipe with the message below: ERROR: test-openvpn-config-1.0-r0 do_package: SYSTEMD_SERVICE_test-openvpn-config value [email protected] does not exist I believe this is caused by the fact that the service file is not part of the files installed by the recipe itself, but it is not meant to be anyway. Is there a (clean) way to achieve this ? Thanks in advance
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#53669): https://lists.yoctoproject.org/g/yocto/message/53669 Mute This Topic: https://lists.yoctoproject.org/mt/83125223/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
