debvm-create: Output image in tar format if step "ext4" is skipped
Outputting the image in tar format breaks interoperability with
debvm-run
, but makes it easier to inspect, convert or perform
additional modifications of the generated image.
This change was so easy to implement that is was worth an attempt. :)
PS: the autodetection probably needs some documentation in the man page.
Merge request reports
Activity
added 1 commit
- f237e5f4 - debvm-create: Output image in tar format if file name ends in .tar
The output tarball created by
debvm
will be fed to atar2qcow
script that will generate a complete disk image (with a bootloader, a partition table, etc), basically the tool discussed in https://bugs.debian.org/1030276.Creating a disk image from an ext4 partition is much harder (bind-mount it, copy the files...) than doing it from a tar.
This allows the reuse of
debvm
(and of all the nice small fixes and features it adds on top ofmmdebstrap
) in an qcow2-based workflow.Would you mind wrapping this up in a different way? (I can implement it.)
I dislike the magic behavior put into the filename. It also seems like the most natural way of consuming the tar would be piping it somewhere else. As such I propose turning this into a skippable step. I imagine that you get tar output if you pass
--skip ext4
. Do you think this alternative interface is sensible?
added 1 commit
- beb245cb - debvm-create: Output image in tar format if step "ext4" is skipped
added 1 commit
- 5aab220f - debvm-create: Output image in tar format if step "ext4" is skipped
mentioned in commit 69ea90a7