From 7508711b3835cc7890d46fda1b4a1c3da196ec9a Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Sat, 22 Apr 2023 15:19:50 +1200 Subject: dev/ref-manual: Document INIT_MANAGER The INIT_MANAGER variable was added in 3.0 but it seems we didn't get around to documenting it yet. I have added a variable glossary entry and made the basic adjustment of the "Using systemd Exclusively" section in the dev manual, however I think the latter section still needs work. (From yocto-docs rev: 602c0e8f770516256dab04edfd887377303c06bb) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- documentation/dev-manual/init-manager.rst | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/init-manager.rst b/documentation/dev-manual/init-manager.rst index 0617fed516..10c4754e62 100644 --- a/documentation/dev-manual/init-manager.rst +++ b/documentation/dev-manual/init-manager.rst @@ -38,26 +38,14 @@ following sections. Using systemd Exclusively ========================= -Set these variables in your distribution configuration file as follows:: - - DISTRO_FEATURES:append = " systemd" - VIRTUAL-RUNTIME_init_manager = "systemd" - -You can also prevent the SysVinit distribution feature from -being automatically enabled as follows:: - - DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" - -Doing so removes any -redundant SysVinit scripts. - -To remove initscripts from your image altogether, set this variable -also:: +Set the :term:`INIT_MANAGER` variable in your distribution configuration +file as follows:: - VIRTUAL-RUNTIME_initscripts = "" + INIT_MANAGER = "systemd" -For information on the backfill variable, see -:term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`. +This will enable systemd and remove sysvinit components from the image. +See ``meta/conf/distro/include/init-manager-systemd.inc`` for exact +details on what this does. Using systemd for the Main Image and Using SysVinit for the Rescue Image ======================================================================== -- cgit v1.2.3-54-g00ecf