Skip to contentSkip to conversation

inconsistencies with selecting systemd as init manager?

DISCUSSION Robert P. J. Day 3 participants 4 messages Apr 23, 2020 – Apr 25, 2020

lore
Share & tools
lore
#0 lore raw

just noticed that, given that since YP 3.0 one could select systemd
as the init manager via the single variable INIT_MANAGER, which pulled in init-manager-systemd.inc:

# Use systemd for system initialization DISTRO_FEATURES_append = " systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit" VIRTUAL-RUNTIME_init_manager ??= "systemd" VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" VIRTUAL-RUNTIME_login_manager ??= "shadow-base"

this doesn't quite seem to match this snippet from
meta/lib/oeqa/selftest/cases/imagefeatures.py:

# Switch to systemd
DISTRO_FEATURES += "systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
VIRTUAL-RUNTIME_syslog = ""
VIRTUAL-RUNTIME_login_manager = "shadow-base"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

not sure if that second snippet could be replaced with a simple
assignment to INIT_MANAGER or whether those two snippets are effectively equivalent ... i'll let someone else make that call.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                         http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 5 lines · Robert P. J. Day

just noticed that, given that since YP 3.0 one could select systemd
as the init manager via the single variable INIT_MANAGER, which pulled in init-manager-systemd.inc:

Quoted 7 lines

# Use systemd for system initialization DISTRO_FEATURES_append = " systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit" VIRTUAL-RUNTIME_init_manager ??= "systemd" VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" VIRTUAL-RUNTIME_login_manager ??= "shadow-base"

INIT_MANAGER was added in 3.0, see:
https://git.openembedded.org/openembedded-core/commit/?id=8d0b4704a526a48cd5e67df61b613424bbbdccde

Quoted 11 lines

this doesn't quite seem to match this snippet from
meta/lib/oeqa/selftest/cases/imagefeatures.py:

# Switch to systemd
DISTRO_FEATURES += "systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
VIRTUAL-RUNTIME_syslog = ""
VIRTUAL-RUNTIME_login_manager = "shadow-base"
DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

this is the 'old' (pre 3.0) method, and it can (and should) be replaced with INIT_MANAGER, i believe.

Quoted 17 lines

not sure if that second snippet could be replaced with a simple
assignment to INIT_MANAGER or whether those two snippets are effectively equivalent ... i'll let someone else make that call.

rday

--

========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday

========================================================================

#2 lore raw
Quoted 16 lines · Nicolas Dechesne

On Thu, Apr 23, 2020 at 1:18 PM Robert P. J. Day <[email protected]> wrote:

  just noticed that, given that since YP 3.0 one could select systemd as the init manager via the single variable INIT_MANAGER, which pulled in init-manager-systemd.inc:

# Use systemd for system initialization DISTRO_FEATURES_append = " systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit" VIRTUAL-RUNTIME_init_manager ??= "systemd" VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" VIRTUAL-RUNTIME_login_manager ??= "shadow-base"

Quoted 3 lines

INIT_MANAGER was added in 3.0, see:
https://git.openembedded.org/openembedded-core/commit/?id=8d0b4704a526a48cd5e67df6
1b613424bbbdccde

i know, that's what i mentioned above.

Quoted 12 lines

  this doesn't quite seem to match this snippet from meta/lib/oeqa/selftest/cases/imagefeatures.py:

# Switch to systemd
DISTRO_FEATURES += "systemd" VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_initscripts = "" VIRTUAL-RUNTIME_syslog = "" VIRTUAL-RUNTIME_login_manager = "shadow-base" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

Quoted 2 lines

this is the 'old' (pre 3.0) method, and it can (and should) be replaced with INIT_MANAGER, i believe.

i suspected as much, i just wanted to point out that those two
snippets are not *exactly* equivalent so someone should make sure that INIT_MANAGER usage is precisely defined.

rday

#3 lore raw
Quoted 36 lines · Robert P. J. Day
Quoted 16 lines · Nicolas Dechesne

On Thu, Apr 23, 2020 at 1:18 PM Robert P. J. Day <[email protected]> wrote:

  just noticed that, given that since YP 3.0 one could select systemd as the init manager via the single variable INIT_MANAGER, which pulled in init-manager-systemd.inc:

# Use systemd for system initialization DISTRO_FEATURES_append = " systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit" VIRTUAL-RUNTIME_init_manager ??= "systemd" VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" VIRTUAL-RUNTIME_login_manager ??= "shadow-base"

Quoted 3 lines

INIT_MANAGER was added in 3.0, see:
https://git.openembedded.org/openembedded-core/commit/?id=8d0b4704a526a48cd5e67df6
1b613424bbbdccde

i know, that's what i mentioned above.

Quoted 12 lines

  this doesn't quite seem to match this snippet from meta/lib/oeqa/selftest/cases/imagefeatures.py:

# Switch to systemd
DISTRO_FEATURES += "systemd" VIRTUAL-RUNTIME_init_manager = "systemd" VIRTUAL-RUNTIME_initscripts = "" VIRTUAL-RUNTIME_syslog = "" VIRTUAL-RUNTIME_login_manager = "shadow-base" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"

Quoted 6 lines
Quoted 2 lines

this is the 'old' (pre 3.0) method, and it can (and should) be replaced with INIT_MANAGER, i believe.

i suspected as much, i just wanted to point out that those two
snippets are not *exactly* equivalent so someone should make sure that INIT_MANAGER usage is precisely defined.

perhaps imagefeatures.py should be updated to sync with INIT_MANAGER settings.

Quoted 6 lines

rday