diff options
author | Paul Eggleton <bluelightning@bluelightning.org> | 2023-04-22 15:19:50 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-22 10:42:54 +0100 |
commit | 7508711b3835cc7890d46fda1b4a1c3da196ec9a (patch) | |
tree | 66ddb92359383f5ca180f1e6c89cddc256a76e43 /documentation/dev-manual | |
parent | 5a8e2d41a63b7af94da85aa7a6fd6393582f84c3 (diff) | |
download | poky-7508711b3835cc7890d46fda1b4a1c3da196ec9a.tar.gz |
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 <bluelightning@bluelightning.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r-- | documentation/dev-manual/init-manager.rst | 24 |
1 files changed, 6 insertions, 18 deletions
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. | |||
38 | Using systemd Exclusively | 38 | Using systemd Exclusively |
39 | ========================= | 39 | ========================= |
40 | 40 | ||
41 | Set these variables in your distribution configuration file as follows:: | 41 | Set the :term:`INIT_MANAGER` variable in your distribution configuration |
42 | 42 | file as follows:: | |
43 | DISTRO_FEATURES:append = " systemd" | ||
44 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
45 | |||
46 | You can also prevent the SysVinit distribution feature from | ||
47 | being automatically enabled as follows:: | ||
48 | |||
49 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
50 | |||
51 | Doing so removes any | ||
52 | redundant SysVinit scripts. | ||
53 | |||
54 | To remove initscripts from your image altogether, set this variable | ||
55 | also:: | ||
56 | 43 | ||
57 | VIRTUAL-RUNTIME_initscripts = "" | 44 | INIT_MANAGER = "systemd" |
58 | 45 | ||
59 | For information on the backfill variable, see | 46 | This will enable systemd and remove sysvinit components from the image. |
60 | :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`. | 47 | See ``meta/conf/distro/include/init-manager-systemd.inc`` for exact |
48 | details on what this does. | ||
61 | 49 | ||
62 | Using systemd for the Main Image and Using SysVinit for the Rescue Image | 50 | Using systemd for the Main Image and Using SysVinit for the Rescue Image |
63 | ======================================================================== | 51 | ======================================================================== |