While working in docker images I need to create internal ext4 partition to be able to run docker in docker (docker:dind image). If I preallocate big filesystem there, it will cause base image size to be really big, even if just few megabytes are really needed. I could try to create sparse file to host the filesystem, but with that the problem is that docker doesn't support them and when docker image is saved, sparse file will be written as whole. So now I'm trying to use this method to resize partition to be bigger on the fly when allocated space is running low https://askubuntu.com/questions/260620/resize-dev-loop0-and-increase-space Is there any way to install losetup with -c switch supported to busybox?
Implemented in git, thanks!