This will help in defining init system specific portions of initscripts
which are shared

Signed-off-by: Khem Raj <[email protected]>
Cc: Sinan Kaya <[email protected]>
---
 meta/recipes-core/busybox/files/rcS.default     | 3 ++-
 meta/recipes-core/sysvinit/sysvinit/rcS-default | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/busybox/files/rcS.default 
b/meta/recipes-core/busybox/files/rcS.default
index 262cad7d2a..66513daf2d 100644
--- a/meta/recipes-core/busybox/files/rcS.default
+++ b/meta/recipes-core/busybox/files/rcS.default
@@ -1 +1,2 @@
-# SULOGIN = "yes"
+# Indicate init system type
+INIT_SYSTEM=busybox
diff --git a/meta/recipes-core/sysvinit/sysvinit/rcS-default 
b/meta/recipes-core/sysvinit/sysvinit/rcS-default
index 709cdf6ec5..e608a77c75 100644
--- a/meta/recipes-core/sysvinit/sysvinit/rcS-default
+++ b/meta/recipes-core/sysvinit/sysvinit/rcS-default
@@ -27,3 +27,6 @@ VOLATILE_ENABLE_CACHE=yes
 # Setting ROOTFS_READ_ONLY to yes and rebooting will give you a read-only 
rootfs.
 # Normally you should not change this value.
 ROOTFS_READ_ONLY=no
+# rcS is also used when using busybox init and shares initscripts, some 
initscripts
+# need to have specific behavior depending on init system
+INIT_SYSTEM=sysvinit
-- 
2.29.2

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

Reply via email to