[yocto] enable/disable systemd from image.bb

Katu Txakur katutxakurra at gmail.com
Tue Mar 4 06:38:42 PST 2014


Sorry, I sent it uncompleted by mistake.

I've also tried

ROOTFS_POSTPROCESS_COMMAND =+ "\
    rm -rf /etc/systemd/system/multi-user.target.wants/recipeA.service; \
"

but it didn't work either. Anyone knows how to do this?

Thanks,
Katu


2014-03-04 14:37 GMT+00:00 Katu Txakur <katutxakurra at gmail.com>:

> Hi,
>
> I'm using Yocto 1.3 and I've created some recipes. All of them have
> systemd services. Some of them start at boot time and others don't. Let's
> say for example:
> recipeA_1.0.bb > SYSTEMD_AUTO_ENABLE_${PN}-systemd = "enable"
> recipeB_1.0.bb > SYSTEMD_AUTO_ENABLE_${PN}-systemd = "disable"
>
> I want to create two image.bb files. One of them will start A and the
> other one will start B. I've tried adding
>
> imageB.bb
> .....
> SYSTEMD_AUTO_ENABLE_recipeA-systemd = "disable"
> SYSTEMD_AUTO_ENABLE_recipeB-systemd = "enable"
> .....
>
> I've also tried
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140304/84ba1435/attachment.html>


More information about the yocto mailing list