copy icon indicating copy to clipboard operation
copy copied to clipboard

Option to preserve special files

Open pmhahn opened this issue 2 years ago • 2 comments

Similar to rsync --specials an option to handle special files as special is required: Currently the code tries to always copy the content of such files, e.g. /dev/console, pipes, sockets, … instead of copying it as a special files. This is causing kaniko to stall when building base images: https://github.com/GoogleContainerTools/kaniko/issues/960

pmhahn avatar May 02 '22 09:05 pmhahn

Couldn't take time to think about the best arch on this. For quick workaround, you can use Skip option. Still open and I'm wiling to tackle this issue.

otiai10 avatar May 30 '22 23:05 otiai10

Couldn't take time to think about the best arch on this. For quick workaround, you can use Skip option.

Skip only solves half of the problem, namely that you do not fill up all space by copying the content. But you still need to create the /dev/console special file using man:mknod(1). And it does not scale to kaniko because there you do not have a static list of files, but just a user-supplied hierarchy of files.

Still open and I'm wiling to tackle this issue.

Thank you for this and your previous work.

pmhahn avatar Jun 04 '22 07:06 pmhahn