what am I doing wrong here? Tried creating squashfs with lzma(according to https://openwrt.org/docs/techref/filesystems) and gzip(the only one built into shfs-tools-mk). Both compressions fail with the error about compression not supported in kernel message.
Thx, KN
root@novitk:/mnt# mount -t squashfs -o loop /mnt/backup/oldroot-X7SPA.sqsh /mnt/oldroot-X7SPA
mount: mounting /dev/loop0 on /mnt/oldroot-X7SPA failed: Invalid argument
root@novitk:/mnt# dmesg | tail -n 1
[491431.807170] squashfs: SQUASHFS error: Filesystem uses "lzma" compression. This is not supported
I thought xz is enough. But maybe it is stripped for embedded systems. Anyway try to install liblzma. xz-utils looks to me like a "complete package" including liblzma?
You would need kernel support if you want to start/mount images during system start. So e. g. initramfs should have support for it. But that should be handled by the Makefiles already.
For just mounting/reading xz (tools) should be enough.