Skip to content

tar2sqfs produces garbage squashfs from mmdebstrap tarball #31

@bdrung

Description

@bdrung

When handing over a tarball produced by mmdebstrap to tar2sqfs, the output is broken:

mmdebstrap ["go faster" options...] buster root.tar
./tar2sqfs root.sqfs < root.tar      # generate from mmdebstrap
unsquashfs -ll root.sqfs             # squashfs-tools can't read it
mount -o loop root.sqfs /mnt         # linux 5.2 can mount it, but it's empty
file root.sqfs                       # header looks OK
rdsquashfs --describe root.sqfs      # even squashfs-tools-ng can't read it
$ rdsquashfs --describe root.sqfs
root.sqfs: reading filesystem tree: location out of bounds.

When booting this squashfs, the linux kernel complains:

[    5.134887] SQUASHFS error: Unable to read directory block [f982957:1674]
[    5.137542] SQUASHFS error: Unable to read directory block [f982957:1688]
[    5.140084] SQUASHFS error: Unable to read directory block [f982957:1688]
[    5.143930] SQUASHFS error: Unable to read directory block [f982957:1674]
[...]

I am using squashfs-tools-ng 0.7 on Ubuntu 19.10. I am not the only one trying this and failing. See https://bugs.debian.org/942098

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions