Building systemd with the Yocto Project and Buildroot

The default init daemon in the Yocto Project is System V. To select systemd, add these lines to your conf/local.conf:

DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" 

If you build with just those two lines in your local configuration, you will find that some components of System V init are still present, for example, the init scripts in /etc/init.d and commands such as runlevel and start-stop-daemon. If you want to strip those out as well, add this to your local configuration:

DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"VIRTUAL-RUNTIME_initscripts = ""

Buildroot uses BusyBox init by default. You can select systemd though menuconfig by looking in the ...

Get Mastering Embedded Linux Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.