summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs-postcommands.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rootfs-postcommands.bbclass')
-rw-r--r--meta/classes/rootfs-postcommands.bbclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 7c440acf00..96d3051429 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -207,9 +207,20 @@ insert_feed_uris () {
207 207
208python write_image_manifest () { 208python write_image_manifest () {
209 from oe.rootfs import image_list_installed_packages 209 from oe.rootfs import image_list_installed_packages
210 with open(d.getVar('IMAGE_MANIFEST', True), 'w+') as image_manifest: 210
211 deploy_dir = d.getVar('DEPLOY_DIR_IMAGE', True)
212 link_name = d.getVar('IMAGE_LINK_NAME', True)
213 manifest_name = d.getVar('IMAGE_MANIFEST', True)
214
215 with open(manifest_name, 'w+') as image_manifest:
211 image_manifest.write(image_list_installed_packages(d, 'ver')) 216 image_manifest.write(image_list_installed_packages(d, 'ver'))
212 image_manifest.write("\n") 217 image_manifest.write("\n")
218
219 if manifest_name is not None and os.path.exists(manifest_name):
220 manifest_link = deploy_dir + "/" + link_name + ".manifest"
221 if os.path.exists(manifest_link):
222 os.remove(manifest_link)
223 os.symlink(os.path.basename(manifest_name), manifest_link)
213} 224}
214 225
215# Can be use to create /etc/timestamp during image construction to give a reasonably 226# Can be use to create /etc/timestamp during image construction to give a reasonably