diff options
author | Ming Liu <liu.ming50@gmail.com> | 2021-04-08 20:51:28 +0200 |
---|---|---|
committer | Ming Liu <liu.ming50@gmail.com> | 2021-04-08 20:51:28 +0200 |
commit | db099053690a61d021778945a9a62732c427a9b2 (patch) | |
tree | ebf46c0de025dc54cbe7cd7545f557cfc199cb0b | |
parent | 6c315792fc62fc86560c88339764c182ba8d0f80 (diff) | |
download | meta-updater-db099053690a61d021778945a9a62732c427a9b2.tar.gz |
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 <liu.ming50@gmail.com>
-rw-r--r-- | classes/image_types_ostree.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
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() { | |||
31 | image_rootfs = d.getVar("IMAGE_ROOTFS") | 31 | image_rootfs = d.getVar("IMAGE_ROOTFS") |
32 | oe.path.copyhardlinktree(image_rootfs, ostree_rootfs) | 32 | oe.path.copyhardlinktree(image_rootfs, ostree_rootfs) |
33 | } | 33 | } |
34 | prepare_ostree_rootfs[fakeroot] = "1" | ||
34 | 35 | ||
35 | do_image_ostree[dirs] = "${OSTREE_ROOTFS}" | 36 | do_image_ostree[dirs] = "${OSTREE_ROOTFS}" |
36 | do_image_ostree[prefuncs] += "prepare_ostree_rootfs" | 37 | do_image_ostree[prefuncs] += "prepare_ostree_rootfs" |