Re: [yocto] Disable systemd-timesyncd.service in image

2020-11-24 Thread Damien LEFEVRE
Yes SYSTEMD_AUTO_ENABLE_${PN} doesn't apply to systemd recipe core services as they are not installed as separate packages. But I got it working now. The default enable/disable service are defined in https://github.com/systemd/systemd/blob/master/presets/90-systemd.preset So

Re: [yocto] Disable systemd-timesyncd.service in image

2020-11-23 Thread Konrad Weihmann
The service is deployed with standard systemd package, which doesn't have that set as far as I see it (no SYSTEMD_AUTO_ENABLE_${PN} in the latest recipe revision) I think, after browsing through the code of systemd - this "autostart" behavior comes from [1]. So I would say you can disable it

Re: [yocto] Disable systemd-timesyncd.service in image

2020-11-23 Thread Joel A Cohen
I think you need to set SYSTEMD_AUTO_ENABLE = “disable” (actually any value other than “enable”) in your bbappend. (It looks like SYSTEMD_AUTO_ENABLE_${PN} is intended to work too, but I can’t verify it at the moment and reading over systemd.bbclass I’m not sure if it works or not) —Aaron On

[yocto] Disable systemd-timesyncd.service in image

2020-11-23 Thread Damien LEFEVRE
Hi, I would like to have systemd-timesyncd.service as part of an image but have it disabled by default. Right now it is enabled by default which causes some issues. I've tried systemd_%.bbappend do_install_append() { rm "$D/etc/systemd/system/dbus-org.freedesktop.timesync1.service" rm