Leave the recipes as they are and install a preset for your image
which disables those services in /usr/lib/systemd/system-preset/
(called something like 00-myimage.preset - files are read
alphabetically, first match takes effect), then list the things you
want to disable in there;

disable avahi.service
disable iptables6.service
etc.

See https://systemd.io/PRESET/

On Wed, Nov 27, 2024 at 6:25 AM sateesh m via lists.yoctoproject.org
<sateesh0457=gmail....@lists.yoctoproject.org> wrote:
>
> Hi Team,
>
> I want to improve my boot time so for that I want to disable few services 
> which is running during boot up. I want to disable below mentioned services.
>
> avahi,iptables6,iptable, zeroconf,polkit,drm,
>
>  services
>
> 6.242s  user@0.service
> 2.01s ldconfig.service
> 2.359s iptables.service
> 2.293s ip6tables.service
> 1.434s systemd-userdbd.service
> 1.463s avahi-daemon.service
>  1.231s modprobe@drm.service
>  1.170s sys-kernel-debug.mount
>  1.163s sys-kernel-tracing.mount
>  1.161s modprobe@configfs.service
>  1.160s tmp.mount
>  1.157s kmod-static-nodes.servic
>
> I have followed below steps but not working this
>
> SYSTEMD_AUTO_ENABLE_avahi = "disable"
> SYSTEMD_SERVICE:avahi = "avahi-daemon.service"
> IMAGE_INSTALL:remove = "avahi"
> SYSTEMD_AUTO_ENABLE_tx-powermon = "disable"
> SYSTEMD_SERVICE:tx-powermon = "tx-powermon.service"
> SYSTEMD_AUTO_ENABLE_polkit = "disable"
> PACKAGECONFIG:remove = "polkit"
> SYSTEMD_AUTO_ENABLE_ip6tables = "disable"
> PACKAGECONFIG:remove = "ip6tables"
> SYSTEMD_SERVICE:ip6tables = "ip6tables.service"
> IMAGE_INSTALL:remove = "ip6tables drm"
> DISTRO_FEATURES:remove = "zeroconf"
>
> 
>


-- 
Alex Kiernan
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64365): https://lists.yoctoproject.org/g/yocto/message/64365
Mute This Topic: https://lists.yoctoproject.org/mt/109803053/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to