Hi Vagrant, thanks for reporting this issue.
On Thu, 03 Jun 2021 21:37:27 -0700 Vagrant Cascadian <vagr...@debian.org> wrote: > I'm trying to create a squashfs image using zstd compression, and when > using mmdebstrap, this basically works using - as the image argument, as > it outputs a tarball on stdout, which I can pass to tar2sqfs with my > custom tar2sqfs arguments. > > According to the bdebstrap manpage, the --target=- argument should be > valid. > > --target TARGET, TARGET > The optional target argument can either be the path to a > directory, the path to a tarball filename, the path to a squashfs > image or -. This is fixed now: https://github.com/bdrung/bdebstrap/commit/c9835828216830078b7fb1d871b26a6df87cea41 The alternative to specifying - as target is to specify nothing as target. But that was buggy as well: https://github.com/bdrung/bdebstrap/commit/e98a254f922b70073ece89709b53b6a635a1881f You example works now (if you drop --no-skip): bdebstrap --name zstdimage sid - | tar2sqfs --exportable \ --compressor zstd --block-size 1048576 sid.squashfs Sadly this defeats bdebstrap a little, because the purpose is to keep the command line short. It would be nice if mmdebstrap would support setting the compressor. The other thing I don't like about it is that sid.squashfs will not end up in the zstdimage directory. Since bdebstrap creates this directory, you cannot pass zstdimage/sid.squashfs to tar2sqfs. I tried to use sponge, but it failed: bdebstrap --name zstdimage sid - | tar2sqfs --exportable \ --compressor zstd --block-size 1048576 | \ sponge zstdimage/sid.squashfs I didn't investigate further. -- Benjamin Drung Senior DevOps Engineer and Debian & Ubuntu Developer Compute Platform Operations 1&1 IONOS SE | Greifswalder Str. 207 | 10405 Berlin | Deutschland E-Mail: benjamin.dr...@ionos.com | Web: www.ionos.de Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498 Vorstand: Hüseyin Dogan, Dr. Martin Endreß, Claudia Frese, Henning Kettler, Arthur Mai, Matthias Steinberg, Achim Weiß Aufsichtsratsvorsitzender: Markus Kadelke Member of United Internet