Hi, the subprocess import is not needed anymore.
> rootfs_extra = int(d.getVar("ROOTFS_EXTRA"))
>
> - output = subprocess.check_output(
> - ["sudo", "du", "-xs", "--block-size=1k", d.getVar("IMAGE_ROOTFS")]
> - )
> - base_size = int(output.split()[0])
> + base_size = int(oe.utils.directory_size(d.getVar("IMAGE_ROOTFS")) / 1024)
This unfortunately breaks if the calling user is not able to read all
files in this rootfs. Actually a single file with perms 600 and owner
root breaks this and by that the imaging.
I don't have a better solution yet, though.
I'm also wondering why this only came up now. It seems like it only
breaks under rootless.
Felix
>
> return base_size + rootfs_extra * 1024
>
> --
> 2.39.5
>
>
> --
> You received this message because you are subscribed to the Google Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20241129062827.527177-2-Adithya.Balakumar%40toshiba-tsip.com.