nixos.containerTarball images are created with trailing garbage, confusing tar --ignore-zeros
(e. g. machinectl import-tar
)
#187816
Labels
0.kind: bug
Something is broken
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
nixos.containerTarball.x86_64-linux images produce errors when extracted with
tar --ignore-zeros
(assystemd-importd
does, cf. systemd/systemd@e4ec782).Steps To Reproduce
Steps to reproduce the behavior:
nixos.containerTarball.x86_64-linux
build at the time of reporting)a5cb7e645c6d282ae917730800d834dbd0934ceee17d8799a12b81dbdfe82907
at the time of reporting)tar -x --ignore-zeros
or a variation thereof, OR runmachinectl import-tar
tar
exit codeExpected behavior
The tarball is expected to extract cleanly.
Example output
Additional context
pixz
is apparently used to compress tarballs:nixpkgs/nixos/lib/make-system-tarball.nix
Line 25 in 2a052ab
pixz
silently appends an "index" to the uncompressed input: pixz | xz -d corrupts data vasi/pixz#65 (comment)pixz -t
Notify maintainers
N/A, hydra job page does not list maintainers
Metadata
N/A, not on a Nix system
The text was updated successfully, but these errors were encountered: