参考:http://doc.slitaz.org/cn:handbook:chroot
解压命令:
unlzma rootfs.gz -S .gz cat rootfs |cpio -id
OR:
(zcat rootfs.gz 2>/dev/null || lzma d rootfs.gz -so) | cpio -id
rm rootfs rootfs.gz
打包命令:
find . -print|cpio -o -H newc|gzip -9 >../rootfs.gz