Modify imgutils.compress to allow the "rootdir" argument to be either a directory or a single file to add to an archive. (cherry picked from commit c585b91422)
c585b91422
The setup for this is a bit complex, so it really ends up testing things twice.
Some of these can only run as root on a real system with access to loop devices. They are skipped when running in a container.