user9019088
user9019088

Reputation:

how to enable systemd in x11 in yocto

I am using yocto(krogoth) version and I have successfully compiled the images.
Distro:imx-fls-x11 && Image:fsl-image-qt5.
Now the issue is the rootfs is with systemV support now i want to use systemd. please help me to do this

Upvotes: 0

Views: 1144

Answers (3)

TrentP
TrentP

Reputation: 4722

The way to do this since about Yocto 4.0 (kirkstone), is to add this to the distro or local.conf:

INIT_MANAGER="systemd"

That will take of the various things like DISTRO_FEATURES, backfill, and so on.

Upvotes: 0

PierreOlivier
PierreOlivier

Reputation: 1556

Modify your local.conf and add :

VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_dev_manager = "systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
VIRTUAL-RUNTIME_initscripts = ""

It will set systemd as init daemon.

Upvotes: 0

Nayfe
Nayfe

Reputation: 2310

To have systemd enable, you need to tweak your distro.

  • add systemd to DISTRO_FEATURES and remove sysvinit from it

  • set VIRTUAL-RUNTIME_init_manager = "systemd"

You can do it in local.conf or by customizing selected distro in meta-fsl-demos.

Upvotes: 0

Related Questions