From db099053690a61d021778945a9a62732c427a9b2 Mon Sep 17 00:00:00 2001 From: Ming Liu Date: Thu, 8 Apr 2021 20:51:28 +0200 Subject: image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfs Since the ostree rootfs is generated by fakeroot, we should make prepare_ostree_rootfs run with fakeroot as well, or else we might run into a pseudo abort issue when removing OSTREE_ROOTFS directory. Reference: https://wiki.yoctoproject.org/wiki/Pseudo_Abort Signed-off-by: Ming Liu --- classes/image_types_ostree.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/image_types_ostree.bbclass b/classes/image_types_ostree.bbclass index 4d9b0a9..31a4491 100644 --- a/classes/image_types_ostree.bbclass +++ b/classes/image_types_ostree.bbclass @@ -31,6 +31,7 @@ python prepare_ostree_rootfs() { image_rootfs = d.getVar("IMAGE_ROOTFS") oe.path.copyhardlinktree(image_rootfs, ostree_rootfs) } +prepare_ostree_rootfs[fakeroot] = "1" do_image_ostree[dirs] = "${OSTREE_ROOTFS}" do_image_ostree[prefuncs] += "prepare_ostree_rootfs" -- cgit v1.2.3-54-g00ecf