diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-02-17 18:47:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-14 14:42:17 +0000 |
commit | 529244ee212fe14019e35a5f163fab705ddbf141 (patch) | |
tree | 494399073efc89e3515294578b87cddd953cf3fd | |
parent | 55928d1237ad4026e8db3cc5424127523543b424 (diff) | |
download | poky-529244ee212fe14019e35a5f163fab705ddbf141.tar.gz |
run-postinsts: simplify the logic of whether to install it to images
The logic is scattered all over the place, but amounts to
"install, unless the rootfs is read only". Let's express that directly.
(From OE-Core rev: 697804229a172125ce7d3bfc9b343812d6fe3240)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta-selftest/recipes-test/images/oe-selftest-image.bb | 2 | ||||
-rw-r--r-- | meta-selftest/recipes-test/images/wic-image-minimal.bb | 2 | ||||
-rw-r--r-- | meta/classes/image.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/rootfs_deb.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 1 | ||||
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 1 | ||||
-rw-r--r-- | meta/lib/oe/manifest.py | 2 | ||||
-rw-r--r-- | meta/recipes-core/images/core-image-minimal.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/opkg/opkg_0.3.4.bb | 2 |
10 files changed, 7 insertions, 10 deletions
diff --git a/meta-selftest/recipes-test/images/oe-selftest-image.bb b/meta-selftest/recipes-test/images/oe-selftest-image.bb index f17094c5d0..5d4d10eef6 100644 --- a/meta-selftest/recipes-test/images/oe-selftest-image.bb +++ b/meta-selftest/recipes-test/images/oe-selftest-image.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | SUMMARY = "An image used during oe-selftest tests" | 1 | SUMMARY = "An image used during oe-selftest tests" |
2 | 2 | ||
3 | IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} dropbear" | 3 | IMAGE_INSTALL = "packagegroup-core-boot dropbear" |
4 | IMAGE_FEATURES = "debug-tweaks" | 4 | IMAGE_FEATURES = "debug-tweaks" |
5 | 5 | ||
6 | IMAGE_LINGUAS = " " | 6 | IMAGE_LINGUAS = " " |
diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b/meta-selftest/recipes-test/images/wic-image-minimal.bb index b687935c49..95946971c2 100644 --- a/meta-selftest/recipes-test/images/wic-image-minimal.bb +++ b/meta-selftest/recipes-test/images/wic-image-minimal.bb | |||
@@ -2,7 +2,7 @@ SUMMARY = "An example of partitioned image." | |||
2 | 2 | ||
3 | SRC_URI = "file://${FILE_DIRNAME}/${BPN}.wks" | 3 | SRC_URI = "file://${FILE_DIRNAME}/${BPN}.wks" |
4 | 4 | ||
5 | IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" | 5 | IMAGE_INSTALL = "packagegroup-core-boot" |
6 | 6 | ||
7 | IMAGE_FSTYPES = "wic" | 7 | IMAGE_FSTYPES = "wic" |
8 | 8 | ||
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 127e62d5d9..405fd73c04 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -29,7 +29,7 @@ IMAGE_FEATURES[validitems] += "debug-tweaks read-only-rootfs empty-root-password | |||
29 | IMAGE_GEN_DEBUGFS ?= "0" | 29 | IMAGE_GEN_DEBUGFS ?= "0" |
30 | 30 | ||
31 | # rootfs bootstrap install | 31 | # rootfs bootstrap install |
32 | ROOTFS_BOOTSTRAP_INSTALL = "${@bb.utils.contains("IMAGE_FEATURES", "package-management", "", "${ROOTFS_PKGMANAGE_BOOTSTRAP}",d)}" | 32 | ROOTFS_BOOTSTRAP_INSTALL = "run-postinsts" |
33 | 33 | ||
34 | # These packages will be removed from a read-only rootfs after all other | 34 | # These packages will be removed from a read-only rootfs after all other |
35 | # packages have been installed | 35 | # packages have been installed |
diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index e8facd4368..10af4b5ff0 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass | |||
@@ -3,7 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | ROOTFS_PKGMANAGE = "dpkg apt" | 5 | ROOTFS_PKGMANAGE = "dpkg apt" |
6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | ||
7 | 6 | ||
8 | do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot" | 7 | do_rootfs[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot" |
9 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" | 8 | do_populate_sdk[depends] += "dpkg-native:do_populate_sysroot apt-native:do_populate_sysroot bzip2-native:do_populate_sysroot" |
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 6b60c46638..a57b1d34f7 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -7,7 +7,6 @@ | |||
7 | 7 | ||
8 | EXTRAOPKGCONFIG ?= "" | 8 | EXTRAOPKGCONFIG ?= "" |
9 | ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}" | 9 | ROOTFS_PKGMANAGE = "opkg ${EXTRAOPKGCONFIG}" |
10 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | ||
11 | 10 | ||
12 | do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" | 11 | do_rootfs[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
13 | do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" | 12 | do_populate_sdk[depends] += "opkg-native:do_populate_sysroot opkg-utils-native:do_populate_sysroot" |
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index 65881a60a7..af0f23877a 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -3,7 +3,6 @@ | |||
3 | # | 3 | # |
4 | 4 | ||
5 | ROOTFS_PKGMANAGE = "rpm dnf" | 5 | ROOTFS_PKGMANAGE = "rpm dnf" |
6 | ROOTFS_PKGMANAGE_BOOTSTRAP = "run-postinsts" | ||
7 | 6 | ||
8 | # dnf is using our custom distutils, and so will fail without these | 7 | # dnf is using our custom distutils, and so will fail without these |
9 | export STAGING_INCDIR | 8 | export STAGING_INCDIR |
diff --git a/meta/lib/oe/manifest.py b/meta/lib/oe/manifest.py index 6ec9b1af8b..60c49be0e9 100644 --- a/meta/lib/oe/manifest.py +++ b/meta/lib/oe/manifest.py | |||
@@ -104,7 +104,7 @@ class Manifest(object, metaclass=ABCMeta): | |||
104 | pkg_list['lgp'] = \ | 104 | pkg_list['lgp'] = \ |
105 | "locale-base-en-us locale-base-en-gb" | 105 | "locale-base-en-us locale-base-en-gb" |
106 | elif image_rootfs.find("core-image-minimal") > 0: | 106 | elif image_rootfs.find("core-image-minimal") > 0: |
107 | pkg_list[self.PKG_TYPE_MUST_INSTALL] = "run-postinsts packagegroup-core-boot" | 107 | pkg_list[self.PKG_TYPE_MUST_INSTALL] = "packagegroup-core-boot" |
108 | 108 | ||
109 | with open(self.initial_manifest, "w+") as manifest: | 109 | with open(self.initial_manifest, "w+") as manifest: |
110 | manifest.write(self.initial_manifest_file_header) | 110 | manifest.write(self.initial_manifest_file_header) |
diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb index 8dd77b3472..4630026aa9 100644 --- a/meta/recipes-core/images/core-image-minimal.bb +++ b/meta/recipes-core/images/core-image-minimal.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | SUMMARY = "A small image just capable of allowing a device to boot." | 1 | SUMMARY = "A small image just capable of allowing a device to boot." |
2 | 2 | ||
3 | IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" | 3 | IMAGE_INSTALL = "packagegroup-core-boot ${CORE_IMAGE_EXTRA_INSTALL}" |
4 | 4 | ||
5 | IMAGE_LINGUAS = " " | 5 | IMAGE_LINGUAS = " " |
6 | 6 | ||
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index bd1fc9ec79..6abe3ae062 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -4,7 +4,7 @@ SECTION = "base" | |||
4 | 4 | ||
5 | DEPENDS = "zlib bzip2 perl ncurses" | 5 | DEPENDS = "zlib bzip2 perl ncurses" |
6 | DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native" | 6 | DEPENDS_class-native = "bzip2-replacement-native zlib-native virtual/update-alternatives-native gettext-native perl-native" |
7 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz run-postinsts perl" | 7 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} xz perl" |
8 | RDEPENDS_${PN}_class-native = "xz-native" | 8 | RDEPENDS_${PN}_class-native = "xz-native" |
9 | 9 | ||
10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" | 10 | UPSTREAM_CHECK_URI = "${DEBIAN_MIRROR}/main/d/dpkg/" |
diff --git a/meta/recipes-devtools/opkg/opkg_0.3.4.bb b/meta/recipes-devtools/opkg/opkg_0.3.4.bb index e298185723..a21fde1cf8 100644 --- a/meta/recipes-devtools/opkg/opkg_0.3.4.bb +++ b/meta/recipes-devtools/opkg/opkg_0.3.4.bb | |||
@@ -59,7 +59,7 @@ do_install_append () { | |||
59 | fi | 59 | fi |
60 | } | 60 | } |
61 | 61 | ||
62 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config run-postinsts libarchive" | 62 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config libarchive" |
63 | RDEPENDS_${PN}_class-native = "" | 63 | RDEPENDS_${PN}_class-native = "" |
64 | RDEPENDS_${PN}_class-nativesdk = "" | 64 | RDEPENDS_${PN}_class-nativesdk = "" |
65 | RREPLACES_${PN} = "opkg-nogpg opkg-collateral" | 65 | RREPLACES_${PN} = "opkg-nogpg opkg-collateral" |