dev-manual: Added some development notes on the systemd feature.
These notes will be deleted eventually. (From yocto-docs rev: 3c4894eaab5e87efbc06132f8c46e69623a72842) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4a4d342264
commit
a8532b0f84
|
@ -3080,13 +3080,37 @@
|
||||||
<para>
|
<para>
|
||||||
By default, the Yocto Project uses
|
By default, the Yocto Project uses
|
||||||
<filename>SysVinit</filename> as the initialization manager.
|
<filename>SysVinit</filename> as the initialization manager.
|
||||||
However, support also exists for <filename>systemd</filename>.
|
However, support also exists for <filename>systemd</filename>,
|
||||||
|
which is a full replacement of for <filename>init</filename> with
|
||||||
|
parallel starting of services, reduced shell overhead and other
|
||||||
|
features, used by many distributions.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
If you want to use <filename>SysVinit</filename>, you do
|
If you want to use <filename>SysVinit</filename>, you do
|
||||||
not have to do anything.
|
not have to do anything.
|
||||||
But, if you want to use <filename>systemd</filename>, you must
|
But, if you want to use <filename>systemd</filename>, you must
|
||||||
take some steps as described in the following sections.
|
take some steps as described in the following sections.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para><emphasis>NOTES TO SELF:</emphasis>
|
||||||
|
<filename>systemd</filename> is a full replacement of for init with
|
||||||
|
parallel starting of services, reduced shell overhead and other
|
||||||
|
features, used by many distributions.</para>
|
||||||
|
<para>I think you set the <filename>VIRTUAL-RUNTIME</filename>
|
||||||
|
in a recipe.
|
||||||
|
I found a recipe called
|
||||||
|
<filename>packagegroup-core-boot.bb</filename>, which is an
|
||||||
|
<filename>OE-Core</filename> recipe, that has a bunch of them.
|
||||||
|
The comment refers to the group as "VIRTUAL-RUNTIME providers".
|
||||||
|
The list includes <filename>VIRTUAL-RUNTIME_dev_manager</filename>,
|
||||||
|
<filename>VIRTUAL-RUNTIME_init_manager</filename>,
|
||||||
|
<filename>VIRTUAL-RUNTIME_login_manager</filename>,
|
||||||
|
<filename>VIRTUAL-RUNTIME_initscripts</filename>, and
|
||||||
|
<filename>VIRTUAL-RUNTIME_keymaps</filename>.</para>
|
||||||
|
</note>
|
||||||
|
|
||||||
<section id='using-systemd-exclusively'>
|
<section id='using-systemd-exclusively'>
|
||||||
<title>Using systemd Exclusively</title>
|
<title>Using systemd Exclusively</title>
|
||||||
|
|
||||||
|
@ -3118,8 +3142,8 @@
|
||||||
DISTRO_FEATURES = "systemd"
|
DISTRO_FEATURES = "systemd"
|
||||||
VIRTUAL-RUNTIME_init-manager = "systemd"
|
VIRTUAL-RUNTIME_init-manager = "systemd"
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Doing so causes your main image to use
|
Doing so causes your main image to use the
|
||||||
<filename>packagegroup-core-boot</filename> and
|
<filename>packagegroup-core-boot.bb</filename> recipe and
|
||||||
<filename>systemd</filename>.
|
<filename>systemd</filename>.
|
||||||
The rescue/minimal image cannot use this group.
|
The rescue/minimal image cannot use this group.
|
||||||
However, it can install <filename>sysvinit</filename>
|
However, it can install <filename>sysvinit</filename>
|
||||||
|
|
Loading…
Reference in New Issue