diff options
author | Ming Liu <liu.ming50@gmail.com> | 2021-06-19 13:01:15 +0200 |
---|---|---|
committer | Ming Liu <liu.ming50@gmail.com> | 2021-06-19 14:59:43 +0200 |
commit | bc8f39fd0dc420feb467ab52acdfde068a36f54f (patch) | |
tree | 131c3dcc6a39423aa6d086698a9f10d81ba2e920 /scripts/qemucommand.py | |
parent | 05e0075ffe155c6177ac5402e8b05ec5e7cb556d (diff) | |
download | meta-updater-bc8f39fd0dc420feb467ab52acdfde068a36f54f.tar.gz |
image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc
The purpose of prepare_ostree_rootfs prefunc is to ensure
do_image_rootfs runs from a clean ${OSTREE_ROOTFS} and call
oe.path.copyhardlinktree from ${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}.
We dont have to maintain a prefunc to achieve that, it could be easily
done in do_image_ostree itself.
But the major reason for this change is to avoid hard links from
${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}, which might lead to a Pseudo
abortion in some cases, which was observed when IMA/EVM is enabled
in rootfs.
There was a commit aiming to fix the Pseudo abortion, commit db099053:
[ image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfs ]
but it's incomplete per later tests, there is still the case some old
inodes being used in ${IMAGE_ROOTFS} when do_rootfs runs, which causes
'rm -rf ${IMAGE_ROOTFS}' fail on a Pseudo abortion error.
This fixes the Pseudo abortion completely.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Diffstat (limited to 'scripts/qemucommand.py')
0 files changed, 0 insertions, 0 deletions