Hi, sorry for bringing this up again, but I’m wondering why snap doesn’t work with kernel 6.8.
I’ve looked at previous threads and also I looked into the snapd code, and it does the mount correctly.
I get an error the same as everyone else:
/tmp >>> LANG=C sudo mount -t squashfs /tmp/canary.squashfs /tmp/tmp.Q2XMX5UkOa [32]
mount: /tmp/tmp.Q2XMX5UkOa: /dev/loop51 already mounted or mount point busy.
dmesg(1) may have more information after failed mount system call.
For me it seems like the problem is not in snapd, but in the kernel, because as you see I cannot mount squashfs at all myself (but other sqash files are mounted at this moment).
Look at this discrepancy:
/tmp >>> ls -lah /dev/loop51
brw-rw---- 1 root disk 7, 51 04-18 18:22 /dev/loop51
~ >>> LANG=C sudo losetup /dev/loop51 [1]
losetup: /dev/loop51: No such file or directory
It’s like something is broken and loop device is and isn’t there depending on who you ask.
I’m on current stable: 6.8.5-1-MANJARO
I tried removing the loop device:
~ >>> LANG=C sudo losetup -d /dev/loop51 [1]
losetup: /dev/loop51: detach failed: No such device or address
~ >>> sudo rm -f /dev/loop51
~ >>> LANG=C ls -lah /dev/loop51 [2]
ls: cannot access '/dev/loop51': No such file or directory
/tmp >>> LANG=C sudo mount -t squashfs /tmp/canary.squashfs /tmp/tmp.Q2XMX5UkOa
mount: /tmp/tmp.Q2XMX5UkOa: failed to setup loop device for /tmp/canary.squashfs.