2

I have a building image that doesn't have a "system" or "systemctl" command available. I've found the recipe in poky/recipes-core/systemd and am unsure how to add it to my final image, and I am having a lot of trouble deciphering the manual.

I've tried adding a line to my IMAGE_INSTALL variable in my image recipe as well as adding DISTRO_FEATURES_append = " systemd" CORE_IMAGE_EXTRA_INSTALL = " systemd" to my local.conf file.

Is my base understanding incorrect that this is enough to add it to a completed image?

1 Answer 1

2

You may also need to add the following lines to local.conf (or distro configuration, if you are building a custom one) to enable systemd on your images:

VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscript = "systemd-compat-units"
Sign up to request clarification or add additional context in comments.

1 Comment

With recent versions you will also need 'DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"' and 'DISTRO_FEATURES:append = "systemd usrmerge"'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.