mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Arch recently landed an update of squahfs-tools to 4.5 which broke our code. The main difference is that the output of unsquahfs stdout does not contain the header we expected. For instance: google:ubuntu-20.04-64 .../mini/hello# unsquashfs -n -dest . -ll /root/foo.snap Parallel unsquashfs: Using 1 processor 5 inodes (1 blocks) to write drwx------ root/root 55 2021-07-27 11:31 . -rw-r--r-- root/root 0 2021-07-27 11:31 ./data.bin drwxr-xr-x root/root 27 2021-07-27 11:31 ./food drwxr-xr-x root/root 27 2021-07-27 11:31 ./food/bard drwxr-xr-x root/root 3 2021-07-27 11:31 ./food/bard/bazd drwxr-xr-x root/root 45 2021-07-27 11:31 ./meta drwxr-xr-x root/root 58 2021-07-27 11:31 ./meta/hooks -rwxr-xr-x root/root 0 2021-07-27 11:31 ./meta/hooks/bar-hook drwxr-xr-x root/root 26 2021-07-27 11:31 ./meta/hooks/dir -rwxr-xr-x root/root 0 2021-07-27 11:31 ./meta/hooks/dir/baz -rwxr-xr-x root/root 0 2021-07-27 11:31 ./meta/hooks/foo-hook -rw-r--r-- root/root 9 2021-07-27 11:31 ./meta/snap.yaml While on Arch with squashfs 4.5: $ unsquashfs -n -dest . -ll /tmp/check-1302223697476122084/0/foo.snap drwx------ root/root 55 2021-07-27 13:31 . -rw-r--r-- root/root 0 2021-07-27 13:31 ./data.bin drwxr-xr-x root/root 27 2021-07-27 13:31 ./food drwxr-xr-x root/root 27 2021-07-27 13:31 ./food/bard drwxr-xr-x root/root 3 2021-07-27 13:31 ./food/bard/bazd drwxr-xr-x root/root 45 2021-07-27 13:31 ./meta drwxr-xr-x root/root 58 2021-07-27 13:31 ./meta/hooks -rwxr-xr-x root/root 0 2021-07-27 13:31 ./meta/hooks/bar-hook drwxr-xr-x root/root 26 2021-07-27 13:31 ./meta/hooks/dir -rwxr-xr-x root/root 0 2021-07-27 13:31 ./meta/hooks/dir/baz -rwxr-xr-x root/root 0 2021-07-27 13:31 ./meta/hooks/foo-hook -rw-r--r-- root/root 9 2021-07-27 13:31 ./meta/snap.yaml Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>