We are likely assuming the source image is compliant enough with the LSB[1] which references the Filesystem Hierarchy Standard[2] that specifies a /bin directory which includes the tar command[3].
Any improvement in LSB compliance would be
beneficial for the UOS distribution.
[2] https://refspecs.linuxbase.org/fhs
[3]
https://refspecs.linuxbase.org/FHS_3.0/fhs/ch03s04.html
I have found the cause of the problem, which is because tar does not exist in the working directory.I wonder if there are requirements on the base image when building from the base image.
Thank you.
发自我的企业微信
HiWe are using diskimage-builder to make a custom image, There is a problem in extract_image, The question is chroot: failed to run command 'bin/tar': No such file or directory, I found the /bin/tar file in the working directory /tmp/ tmp.00yldwe1xt. But errors are still being reported. It's not clear if this is a custom image problem, There are also requirements for custom images.