diff options
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index cf02f88de5..4aae3a7819 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -128,12 +128,6 @@ python () { | |||
128 | 128 | ||
129 | d.setVar('IMAGE_FEATURES', ' '.join(list(remain_features))) | 129 | d.setVar('IMAGE_FEATURES', ' '.join(list(remain_features))) |
130 | 130 | ||
131 | if d.getVar('BB_WORKERCONTEXT', True) is not None: | ||
132 | pn = d.getVar('PN', True) | ||
133 | runtime_mapping_rename("PACKAGE_INSTALL", pn, d) | ||
134 | runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d) | ||
135 | runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d) | ||
136 | |||
137 | # Ensure we have the vendor list for complementary package handling | 131 | # Ensure we have the vendor list for complementary package handling |
138 | ml_vendor_list = "" | 132 | ml_vendor_list = "" |
139 | multilibs = d.getVar('MULTILIBS', True) or "" | 133 | multilibs = d.getVar('MULTILIBS', True) or "" |
@@ -271,6 +265,17 @@ read_only_rootfs_hook () { | |||
271 | fi | 265 | fi |
272 | } | 266 | } |
273 | 267 | ||
268 | # We have to delay the runtime_mapping_rename until just before rootfs runs | ||
269 | # otherwise, the multilib renaming could step in and squash any fixups that | ||
270 | # may have occurred. | ||
271 | python rootfs_runtime_mapping() { | ||
272 | pn = d.getVar('PN', True) | ||
273 | runtime_mapping_rename("PACKAGE_INSTALL", pn, d) | ||
274 | runtime_mapping_rename("PACKAGE_INSTALL_ATTEMPTONLY", pn, d) | ||
275 | runtime_mapping_rename("BAD_RECOMMENDATIONS", pn, d) | ||
276 | } | ||
277 | do_rootfs[prefuncs] += "rootfs_runtime_mapping" | ||
278 | |||
274 | fakeroot do_rootfs () { | 279 | fakeroot do_rootfs () { |
275 | #set -x | 280 | #set -x |
276 | # When use the rpm incremental image generation, don't remove the rootfs | 281 | # When use the rpm incremental image generation, don't remove the rootfs |