Bug 13876 - update-rc.d INITSCRIPT_PACKAGES misses its goal
Summary: update-rc.d INITSCRIPT_PACKAGES misses its goal
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 3.0.3
Hardware: All Multiple
: Undecided normal
Target Milestone: ---
Assignee: Unassigned
QA Contact: Richard Purdie
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-04-16 10:03 UTC by Louis Rannou
Modified: 2020-04-23 07:38 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Rannou 2020-04-16 10:03:44 UTC
Using the following recipe, there won't be any S61child in rc
It seems that added packages are checking INITSCRIPT_NAME which is the parent.


SUMMARY = "Test INITSCRIPT_PACKAGES"
LICENSE = "CLOSED"

do_install() {
    install -d ${D}${sysconfdir}/init.d
    echo -e "#!/bin/sh\n\necho FATHER" > ${WORKDIR}/father
    echo -e "#!/bin/sh\n\necho CHILD" > ${WORKDIR}/child

    install -m 0755 ${WORKDIR}/father ${D}${sysconfdir}/init.d/
    install -m 0755 ${WORKDIR}/child ${D}${sysconfdir}/init.d/
}

inherit update-rc.d

INITSCRIPT_PACKAGES = "${PN} ${PN}-child"
INITSCRIPT_NAME = "father"
INITSCRIPT_PARAMS = "defaults 60"
INITSCRIPT_NAME-child = "child"
INITSCRIPT_PARAMS-child = "defaults 61"
Comment 1 Steve Sakoman 2020-04-23 07:38:40 UTC
Should be:

INITSCRIPT_NAME_${PN}-child
INITSCRIPT_PARAMS_${PN}-child = "defaults 61"