Package: bdebstrap Version: 0.1.1-1 Severity: normal X-Debbugs-Cc: vagr...@debian.org
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 -. When I try to pass to pass --target=- to bdebstrap, it fails: $ bdebstrap --target=- --name zstdimage2 sid | tar2sqfs --no-skip --exportable --compressor zstd --block-size 1048576 sid.squashfs 2021-06-03 21:24:49,599 bdebstrap INFO: Creating output directory './zstdimage2'... 2021-06-03 21:24:49,599 bdebstrap INFO: Saving configuration to './zstdimage2/config.yaml'. 2021-06-03 21:24:49,602 bdebstrap INFO: Setting environment variable BDEBSTRAP_NAME=zstdimage2 2021-06-03 21:24:49,603 bdebstrap INFO: Setting environment variable BDEBSTRAP_OUTPUT_DIR=/tmp/bdebstrap-output 2021-06-03 21:24:49,603 bdebstrap INFO: Setting environment variable SOURCE_DATE_EPOCH=1622780689 2021-06-03 21:24:49,603 bdebstrap INFO: Calling mmdebstrap -v "--essential-hook=mkdir -p \"\$1/tmp/bdebstrap-output\"" "--customize-hook=chroot \"\$1\" dpkg-query -f='${Package}\t${Version}\n' -W > \"\$1/tmp/bdebstrap-output/manifest\"" "--customize-hook=sync-out \"/tmp/bdebstrap-output\" \"./zstdimage2\"" "--customize-hook=rm -rf \"\$1/tmp/bdebstrap-output\"" sid ./zstdimage2/- I: automatically chosen mode: unshare I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: directory E: cannot create /tmp/tmp.bz2O8rD4SF/zstdimage2: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage2/-: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage2/-//etc: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage2/-//etc/apt: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage2/-//etc/apt/apt.conf.d: Permission denied W: listening on child socket failed: 2021-06-03 21:24:50,141 bdebstrap INFO: Execution time: 0.546 seconds 2021-06-03 21:24:50,141 bdebstrap ERROR: mmdebstrap failed with exit code 1. See above for details. reading tar header: short read Or passing in the image output positional argument: $ bdebstrap --name zstdimage sid - | tar2sqfs --no-skip --exportable --compressor zstd --block-size 1048576 sid.squashfs 2021-06-03 21:23:39,044 bdebstrap INFO: Creating output directory './zstdimage'... 2021-06-03 21:23:39,044 bdebstrap INFO: Saving configuration to './zstdimage/config.yaml'. 2021-06-03 21:23:39,047 bdebstrap INFO: Setting environment variable BDEBSTRAP_NAME=zstdimage 2021-06-03 21:23:39,047 bdebstrap INFO: Setting environment variable BDEBSTRAP_OUTPUT_DIR=/tmp/bdebstrap-output 2021-06-03 21:23:39,047 bdebstrap INFO: Setting environment variable SOURCE_DATE_EPOCH=1622780619 2021-06-03 21:23:39,048 bdebstrap INFO: Calling mmdebstrap -v "--essential-hook=mkdir -p \"\$1/tmp/bdebstrap-output\"" "--customize-hook=chroot \"\$1\" dpkg-query -f='${Package}\t${Version}\n' -W > \"\$1/tmp/bdebstrap-output/manifest\"" "--customize-hook=sync-out \"/tmp/bdebstrap-output\" \"./zstdimage\"" "--customize-hook=rm -rf \"\$1/tmp/bdebstrap-output\"" sid ./zstdimage/- I: automatically chosen mode: unshare I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: directory E: cannot create /tmp/tmp.bz2O8rD4SF/zstdimage: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage/-: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage/-//etc: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage/-//etc/apt: Permission denied; cannot create /tmp/tmp.bz2O8rD4SF/zstdimage/-//etc/apt/apt.conf.d: Permission denied W: listening on child socket failed: 2021-06-03 21:23:39,560 bdebstrap INFO: Execution time: 0.522 seconds 2021-06-03 21:23:39,561 bdebstrap ERROR: mmdebstrap failed with exit code 1. See above for details. reading tar header: short read Thanks for developing and maintaining bdebstrap! live well, vagrant
signature.asc
Description: PGP signature