squashfs 使用unsquashfs 解压 squashfs.img 报错 "Filesystem uses xz compression, this is unsupported by this version"

目标环境:

系统:centos7,3.10内核

错误复现

[root@cobbler LiveOS]# unsquashfs squashfs.img
Filesystem uses xz compression, this is unsupported by this version
Decompressors available:
        gzip

解决方案:

下载最新版:

squashfs4.4
https://sourceforge.net/projects/squashfs/files/squashfs/squashfs4.4/

安装依赖

yum install -y zlib-devel xz-devel

解压,改配置,编译,安装

tar xvf squashfs4.4.tar.gz
#cd squashfs4.4
cd squashfs4.4/squashfs-tools
sed -i s/#XZ_SUPPORT/XZ_SUPPORT/g Makefile
make &&make install
posted @ 2020-04-22 14:04  lvusyy  阅读(2841)  评论(0编辑  收藏  举报