Settings for yocto: Difference between revisions

From Mike's wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 15: Line 15:


=== Manually disable ===
=== Manually disable ===
remove the link created in /etc/systemd/system.
remove the link created in /etc/systemd/system.<pre>
do_install_append() {
    rm -rf ${D}${sysconfdir}/systemd/system/sysinit.target.wants/systemd-timesyncd.service
}
</pre>

Latest revision as of 14:42, 26 January 2023

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
}