diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-03-06 14:15:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 15:05:08 +0000 |
commit | cd1195b6fede2005506600bd431a66d4c454d4b9 (patch) | |
tree | e63527b2f01f96f881ee59dc6ec64c4e717bdda5 /meta/recipes-devtools/opkg/opkg.inc | |
parent | 5159ddcb62682e1b7e63a20a9218ea96e3fe10a2 (diff) | |
download | poky-cd1195b6fede2005506600bd431a66d4c454d4b9.tar.gz |
opkg/dpkg: remove the postinstalls
Just use the run-postinsts recipe for running first boot postinstalls.
[YOCTO #5666]
(From OE-Core rev: 2dadf775f619571c273ea20eb8d3fdd7ba656052)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg/opkg.inc')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index 7bea26d42c..9f87df551e 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -38,7 +38,7 @@ EXTRA_OECONF = "\ | |||
38 | --with-opkglibdir=${OPKGLIBDIR} \ | 38 | --with-opkglibdir=${OPKGLIBDIR} \ |
39 | " | 39 | " |
40 | 40 | ||
41 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base" | 41 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base run-postinsts" |
42 | RDEPENDS_${PN}_class-native = "" | 42 | RDEPENDS_${PN}_class-native = "" |
43 | RDEPENDS_${PN}_class-nativesdk = "" | 43 | RDEPENDS_${PN}_class-nativesdk = "" |
44 | RREPLACES_${PN} = "opkg-nogpg" | 44 | RREPLACES_${PN} = "opkg-nogpg" |
@@ -73,30 +73,4 @@ do_install_append() { | |||
73 | rm ${D}${bindir}/update-alternatives | 73 | rm ${D}${bindir}/update-alternatives |
74 | } | 74 | } |
75 | 75 | ||
76 | pkg_postinst_${PN} () { | ||
77 | #!/bin/sh | ||
78 | if ${@base_contains('DISTRO_FEATURES','sysvinit','true','false',d)} && \ | ||
79 | [ "x$D" != "x" ] && [ -f $D${OPKGLIBDIR}/opkg/status ]; then | ||
80 | install -d $D${sysconfdir}/rcS.d | ||
81 | |||
82 | # this happens at S98 where our good 'ole packages script used to run | ||
83 | echo "#!/bin/sh | ||
84 | [ -e ${sysconfdir}/default/postinst ] && . ${sysconfdir}/default/postinst | ||
85 | if [ \"\$POSTINST_LOGGING\" = \"1\" ]; then | ||
86 | opkg-cl configure >\$LOGFILE 2>&1 | ||
87 | else | ||
88 | opkg-cl configure | ||
89 | fi | ||
90 | rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | ||
91 | " > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | ||
92 | chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | ||
93 | fi | ||
94 | } | ||
95 | |||
96 | BBCLASSEXTEND = "native nativesdk" | 76 | BBCLASSEXTEND = "native nativesdk" |
97 | |||
98 | # Define a variable to allow distros to run configure earlier. | ||
99 | # (for example, to enable loading of ethernet kernel modules before networking starts) | ||
100 | # note: modifying name or default value for POSTINSTALL_INITPOSITION requires | ||
101 | # changes in systemd-compat-units.bb | ||
102 | POSTINSTALL_INITPOSITION ?= "98" | ||