Ravi A
Ravi A

Reputation: 531

Systemd customization

I have a minimal embedded system based on i.MX6 which doesn't have any network connectivity. I am planning to customize the systemd so that it will take less time to boot. Currently the user space is taking more time to boot. I have built images using yocto.

Is it possible to customize systemd using yocto? or need to disable the systemd services using sysctl once the board boots.

Upvotes: 0

Views: 3712

Answers (2)

Parthiban
Parthiban

Reputation: 2330

This can be done from yocto itself. But before getting into removal, make sure to list down the sub components/packages which you don't want in systemd.

Most of the time you may not be interested in timesyncd, timedated and other network related packages as well.

Get the complete list here. This is latest version of systemd bitbake with all the available packages it provides. Choose the list which you want and enable only the list which you want in .bbappend file

If you don't have enough control over the already enabled packages, create a custom .bbappend (may be in your custom layer) named as "systemd_%.bbappend and add,

PACKAGECONFIG_remove = "list of packages to remove".

This will remove the packages which you don't want in systemd. The same procedure applies for non systemd components.

Upvotes: 2

yoctotutor.com
yoctotutor.com

Reputation: 5511

First of all check how many systemd service files are running while boot up the board.
In etc/systemd/system/ the path for all runnning services on boot up.
try to remove all services (*.services) one by one and boot the board.

Upvotes: 0

Related Questions