Skip to contentSkip to conversation

core-image-tiny-initramfs: delete populate_sdk task

PATCH In review Chen Qi 2 participants 3 messages Dec 16, 2021 – Jan 5, 2022

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 core-image-tiny-initramfs: delete populate_sdk task

Currently, if we do `bitbake core-image-tiny-initramfs' and then install the generated SDK, the following error appears.

tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation not permitted

The populate_sdk task does not make much sense for this recipe and considering the fact the its SDK cannot be installed, we'd better just delete the task.

---
 meta/recipes-core/images/core-image-tiny-initramfs.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/images/core-image-tiny-initramfs.bb +2 -0
index 47470849ed..66c73e4261 100644
@@ -23,6 +23,8 @@ IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
 
 inherit core-image
 
+deltask do_populate_sdk
+
 IMAGE_ROOTFS_SIZE = "8192"
 IMAGE_ROOTFS_EXTRA_SPACE = "0"
 
Signature · 1 line
2.33.0
#1 lore raw
Quoted 8 lines · Chen Qi

Currently, if we do `bitbake core-image-tiny-initramfs' and then install the generated SDK, the following error appears.

tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation not permitted

The populate_sdk task does not make much sense for this recipe and considering the fact the its SDK cannot be installed, we'd better just delete the task.

Feels to me that this is working around a problem instead of fixing the problem.

This happens for -tiny-initramfs because the root fs contains a populated /dev tree, with device nodes in. There is no hard association between "has a static /dev" and "SDKs are meaningless", so a better fix would be to remove /dev from the SDK entirely, instead of removing SDKs from one image, when this is a general problem.

Ross

author
#2 lore raw
Quoted 11 lines · Ross Burton
Quoted 8 lines · Chen Qi

Currently, if we do `bitbake core-image-tiny-initramfs' and then install the generated SDK, the following error appears.

tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation not permitted

The populate_sdk task does not make much sense for this recipe and considering the fact the its SDK cannot be installed, we'd better just delete the task.

Feels to me that this is working around a problem instead of fixing the problem.

Quoted 7 lines

This happens for -tiny-initramfs because the root fs contains a populated /dev tree, with device nodes in. There is no hard association between "has a static /dev" and "SDKs are meaningless", so a better fix would be to remove /dev from the SDK entirely, instead of removing SDKs from one image, when this is a general problem.

Ross

Hi Ross,

I've sent out a new patch to remove '/dev' from SDK.

Regards,

Qi