Skip to content

Commit

Permalink
cve_filter: Fix the sequence of cve_filter task execution
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo M. Duarte <rodrigo.duarte@ossystems.com.br>
(cherry picked from commit 8a5f084)
  • Loading branch information
mdrodrigo committed Jun 20, 2024
1 parent 1e323b7 commit e9a5275
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions classes/cve-filter.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,10 @@ python do_cve_filter (){
bb.plain("DONE!!")
}

addtask cve_filter after do_image before do_image_complete
addtask cve_filter after do_rootfs before do_image

IMAGE_POSTPROCESS_COMMAND += "link_cvefilter_markdownfile;"
ROOTFS_POSTPROCESS_COMMAND:prepend = "link_cvefilter_markdownfile; "

link_cvefilter_markdownfile () {
if [ -e "${CVE_FILTER_MARKDOWN_FILE}" ]; then
ln -sf ${CVE_FILTER_MARKDOWN_FILE_NAME} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.md
fi
ln -sf ${CVE_FILTER_MARKDOWN_FILE_NAME} ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.md
}

0 comments on commit e9a5275

Please sign in to comment.