diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2014-03-06 14:15:41 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 15:05:08 +0000 |
commit | 5159ddcb62682e1b7e63a20a9218ea96e3fe10a2 (patch) | |
tree | 0c51d7a4a862c6a81fb07e2c758ee8295c370384 /meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | |
parent | 635c08c8c21e4faf4041fc5a3eaec87848b08d93 (diff) | |
download | poky-5159ddcb62682e1b7e63a20a9218ea96e3fe10a2.tar.gz |
run-postinsts: use it for opkg/dpkg too
Currently, opkg/dpkg have their own postinstalls that create a
run-postinsts script which is run at first boot.
This commit prepares the run-postinsts recipe/script to be used by
opkg/dpkg when DISTRO_FEATURES includes package-management.
[YOCTO #5666]
(From OE-Core rev: f33555f52a4ee83f0bd205cdf483045fcd0578b2)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb')
-rw-r--r-- | meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb index 64f85c262d..e990c670c0 100644 --- a/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb +++ b/meta/recipes-devtools/run-postinsts/run-postinsts_1.0.bb | |||
@@ -37,6 +37,8 @@ do_install() { | |||
37 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ | 37 | sed -i -e 's:#SYSCONFDIR#:${sysconfdir}:g' \ |
38 | -e 's:#SBINDIR#:${sbindir}:g' \ | 38 | -e 's:#SBINDIR#:${sbindir}:g' \ |
39 | -e 's:#BASE_BINDIR#:${base_bindir}:g' \ | 39 | -e 's:#BASE_BINDIR#:${base_bindir}:g' \ |
40 | -e 's:#IMAGE_PKGTYPE#:${IMAGE_PKGTYPE}:g' \ | ||
41 | -e 's:#PM_INSTALLED#:${@base_contains("IMAGE_FEATURES", "package-management", "true", "false", d)}:g' \ | ||
40 | ${D}${sbindir}/run-postinsts \ | 42 | ${D}${sbindir}/run-postinsts \ |
41 | ${D}${systemd_unitdir}/system/run-postinsts.service | 43 | ${D}${systemd_unitdir}/system/run-postinsts.service |
42 | } | 44 | } |