Settings for yocto

From Mike's wiki
Jump to navigation Jump to search

Disable Systemd for a app

SYSTEMD_AUTO_ENABLE_${PN} = "disable"


OPTS="--root=$D"

systemctl $OPTS mask modutils.service

Note Disable does not work in yocto

Enable app in systemd

OPTS="--root=$D"

systemctl $OPTS enable modutils.service

Manually disable

remove the link created in /etc/systemd/system.

do_install_append() {
    rm -rf ${D}${sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service
}