Skip to contentSkip to conversation

init-manager-systemd.inc: update KERNEL_FEATURES

PATCH In review [email protected] 2 participants 3 messages Aug 24, 2023 – Aug 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 init-manager-systemd.inc: update KERNEL_FEATURES

From: Kai Kang <[email protected]>

Append cfg/systemd.scc to init-manager-systemd.inc which enables kernel config CONFIG_FHANDLE. The config is required by systemd >= 209 [1]:

you have to enable CONFIG_FHANDLE in your kernel to use systemd >= 209 successfully, otherwise udev won't find any devices.

[1]: https://lists.freedesktop.org/archives/systemd-devel/2014-February/017362.html

---
 meta/conf/distro/include/init-manager-systemd.inc | 1 +
 1 file changed, 1 insertion(+)
meta/conf/distro/include/init-manager-systemd.inc +1 -0
index 595d1f2644..8f45a87b50 100644
@@ -5,3 +5,4 @@ VIRTUAL-RUNTIME_init_manager ??= "systemd"
 VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units"
 VIRTUAL-RUNTIME_login_manager ??= "shadow-base"
 VIRTUAL-RUNTIME_dev_manager ??= "systemd"
+KERNEL_FEATURES:append = " cfg/systemd.scc"
Signature · 1 line
2.34.1
#1 lore raw
Quoted 21 lines · Kai Kang

From: Kai Kang <[email protected]>

Append cfg/systemd.scc to init-manager-systemd.inc which enables kernel config CONFIG_FHANDLE. The config is required by systemd >= 209 [1]:

you have to enable CONFIG_FHANDLE in your kernel to use systemd >= 209 successfully, otherwise udev won't find any devices.

[1]: https://lists.freedesktop.org/archives/systemd-devel/2014-February/017362.html

---
  meta/conf/distro/include/init-manager-systemd.inc | 1 +
  1 file changed, 1 insertion(+)
meta/conf/distro/include/init-manager-systemd.inc +0 -0
index 595d1f2644..8f45a87b50 100644

meta/conf/distro/include/init-manager-systemd.inc VIRTUAL-RUNTIME_init_manager ??= "systemd" · line 8

Quoted 4 lines
meta/conf/distro/include/init-manager-systemd.inc +1 -0
@@ -5,3 +5,4 @@ VIRTUAL-RUNTIME_init_manager ??= "systemd"
  VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units"
  VIRTUAL-RUNTIME_login_manager ??= "shadow-base"
  VIRTUAL-RUNTIME_dev_manager ??= "systemd"
+KERNEL_FEATURES:append = " cfg/systemd.scc"

Can this be always enabled ? udev is used with sysvinit too.

Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#186650): https://lists.openembedded.org/g/openembedded-core/message/186650
Mute This Topic: https://lists.openembedded.org/mt/100932054/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#2 lore raw
Quoted 16 lines · Khem Raj
Quoted 15 lines · Kai Kang

From: Kai Kang <[email protected]>

Append cfg/systemd.scc to init-manager-systemd.inc which enables kernel config CONFIG_FHANDLE. The config is required by systemd >= 209 [1]:

   you have to enable CONFIG_FHANDLE in your kernel to use systemd >= 209 successfully, otherwise udev won't find any devices.

[1]: https://lists.freedesktop.org/archives/systemd-devel/2014-February/017362.html

---
  meta/conf/distro/include/init-manager-systemd.inc | 1 +

  1 file changed, 1 insertion(+)
Quoted 12 lines
Quoted 10 lines
meta/conf/distro/include/init-manager-systemd.inc +0 -0
index 595d1f2644..8f45a87b50 100644
@@ -5,3 +5,4 @@ VIRTUAL-RUNTIME_init_manager ??= "systemd"

  VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" VIRTUAL-RUNTIME_login_manager ??= "shadow-base" VIRTUAL-RUNTIME_dev_manager ??= "systemd" +KERNEL_FEATURES:append = " cfg/systemd.scc"

Can this be always enabled ? udev is used with sysvinit too.

Just found it had been enabled by default

https://git.yoctoproject.org/yocto-kernel-cache/commit/ktypes/standard/standard.scc?id=3a55d8b019770d78598c3121a6f3479383ef77f2

commit 3a55d8b019770d78598c3121a6f3479383ef77f2
Author: Bruce Ashfield <[email protected]> Date:   Fri Feb 14 13:36:54 2014 -0500

    meta: enable CONFIG_FHANDLE for standard and preempt-rt kernels

    CONFIG_FHANDLE is now a requirement for systemd support:

http://cgit.freedesktop.org/systemd/systemd/commit/README?id=c2cb7cbbd526e572b1caa1d7f70be68195b513a9

    So we add it into our default standard and preempt-rt kernel types, the overhead is small and having this always configured allows init system switching, without a kernel rebuild.

ktypes/standard/standard.scc +0 -0
index 31ebd22f..08563da6 100644
@@ -91,4 +91,6 @@ include cfg/net/ip_nf.scc

 include cfg/net/ip6_nf.scc
 include cfg/net/bridge.scc

+include cfg/systemd.scc
+
 include features/rfkill/rfkill.scc

Plz ignore it and sorry for inconvenience.

Regards,
Kai

Quoted 10 lines
Quoted 10 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#186650): https://lists.openembedded.org/g/openembedded-core/message/186650
Mute This Topic: https://lists.openembedded.org/mt/100932054/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Kai Kang
Wind River Linux