]> code.ossystems Code Review - openembedded-core.git/commitdiff
busybox: Install /etc/default/rcS when used as init system
authorKhem Raj <raj.khem@gmail.com>
Thu, 17 Dec 2020 22:54:38 +0000 (14:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Dec 2020 00:03:01 +0000 (00:03 +0000)
This helps in using sysvinit scripts with busybox init system as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox.inc
meta/recipes-core/busybox/busybox_1.32.0.bb
meta/recipes-core/busybox/files/rcS.default [new file with mode: 0644]

index e0522be72952829c9a39c3e951c45b2668cdac37..c3a97261d5ece94b8184ef9a1003403e934c310f 100644 (file)
@@ -312,6 +312,7 @@ do_install () {
        if grep -q "CONFIG_INIT=y" ${B}/.config; then
                install -D -m 0755 ${WORKDIR}/rcS ${D}${sysconfdir}/init.d/rcS
                install -D -m 0755 ${WORKDIR}/rcK ${D}${sysconfdir}/init.d/rcK
+               install -D -m 0755 ${WORKDIR}/rcS.default ${D}${sysconfdir}/default/rcS
        fi
 
        if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
index 8e23b0d4a2889d6eae02746f60b724664220a049..3a669444dd157c40eeacd0b3d904f7542cb1e1fb 100644 (file)
@@ -33,6 +33,7 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
            file://getopts.cfg \
            file://resize.cfg \
            ${@["", "file://init.cfg"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \
+           ${@["", "file://rcS.default"][(d.getVar('VIRTUAL-RUNTIME_init_manager') == 'busybox')]} \
            ${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \
            file://syslog.cfg \
            file://unicode.cfg \
diff --git a/meta/recipes-core/busybox/files/rcS.default b/meta/recipes-core/busybox/files/rcS.default
new file mode 100644 (file)
index 0000000..262cad7
--- /dev/null
@@ -0,0 +1 @@
+# SULOGIN = "yes"