mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 19:02:23 +01:00
Apparently, when opkg/dpkg and run-postinsts are installed in the same time, opkg/dpkg postinstall overwrites the run-postinsts link in rcS.d. This will make run-postinsts script useless and the delayed postinstalls will not be run. This issue happens only when 'package-management' is disabled and, in the same time, dpkg/opkg ends up in the image: either pulled by some dependency or manually installed. With this patch, both opkg/dpkg and run-postinsts scripts will run but the former will silently fail because the package metadata is removed from the image since 'pacakge-management' is disabled. [YOCTO #4484] (From OE-Core rev: 882da38f226acc40c041155218549edad461b7d7) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
652 B
BlitzBasic
29 lines
652 B
BlitzBasic
DESCRIPTION = "Run postinstall scripts on device"
|
|
SECTION = "devel"
|
|
PR = "r9"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SRC_URI = "file://run-postinsts"
|
|
|
|
INITSCRIPT_NAME = "run-postinsts"
|
|
INITSCRIPT_PARAMS = "start 99 S ."
|
|
|
|
inherit update-rc.d
|
|
|
|
do_configure() {
|
|
:
|
|
}
|
|
|
|
do_compile () {
|
|
:
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${sysconfdir}/init.d/
|
|
install -m 0755 ${WORKDIR}/run-postinsts ${D}${sysconfdir}/init.d/
|
|
|
|
sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' ${D}${sysconfdir}/init.d/run-postinsts
|
|
}
|