Vim3l ubuntu and debian image "squashfs" unknown filesystem error

khadas@Khadas:~$ sudo snap install hello*
error: system does not fully support snapd: cannot mount squashfs image using
       "squashfs": mount: /tmp/sanity-mountpoint-325640681: unknown filesystem
       type 'squashfs'.
khadas@Khadas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal
khadas@Khadas:~$ cd /usr/src/linux-headers-4.9.241/fs/squashfs
khadas@Khadas:/usr/src/linux-headers-4.9.241/fs/squashfs$ modprobe squashfs
modprobe: FATAL: Module squashfs not found in directory /lib/modules/4.9.241
khadas@Khadas:/usr/src/linux-headers-4.9.241/fs/squashfs$ ls
Kconfig  Makefile


@numbqq can you give some hints pre-built ubuntu image does not have this issue so problem is in my squashfs configs.

So the images we released work well, right? What changes have you done?

please use mainline kernel

old vendor kernel 4.9.241 - limited configuration and old squashfs variants

PS: i think kernel 4.9.241 zstd squashfs compression missed

thanks for hints I will see that today

I also want to move but seniors told me that it 4.9 is more stable and supported by khadas so for I am now working with kernel 4.9

yes your image works fine I can install and run lxd snap.

khadas@Khadas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
khadas@Khadas:~$ snap list
Name    Version    Rev    Tracking       Publisher   Notes
core    16-2.54.3  12726  latest/stable  canonical✓  core
core20  20220114   1332   latest/stable  canonical✓  base
lxd     4.0.8      21843  4.0/stable     canonical✓  -

just some selinux warning comes as below when running command but I am fine with it.

lxd init
2022/02/18 14:55:45.370395 cmd_run.go:1030: WARNING: cannot create user data directory: failed to verify SELinux context of /root/snap: exec: "matchpathcon": executable file not found in $PATH

What you changed to the source code?

@numbqq I had reduced file-systems to which weren’t using but now client wants to run container so I was adding file-systems back.

I will just remove my boot-optimisation patches for now.