I think an acceptable solution is to just completely remove the "try to hardlink" logic from squashfs.go, and default to the "try to symlink" logic instead. Symlinks work in a lot more cases than hardlinks.
I cross-posted this in snap forums: https://forum.snapcraft.io/t/hardlinking-snaps-wastes-400-mb-tmpfs-ram-in-live-cds/15980
I also applied a temporary workaround in LTSP: https://github.com/ltsp/ltsp/blob/master/ltsp/client/init/55-snap.sh#L31
I think an acceptable solution is to just completely remove the "try to hardlink" logic from squashfs.go, and default to the "try to symlink" logic instead. Symlinks work in a lot more cases than hardlinks.
I cross-posted this in snap forums: /forum. snapcraft. io/t/hardlinkin g-snaps- wastes- 400-mb- tmpfs-ram- in-live- cds/15980
https:/
I also applied a temporary workaround in LTSP: /github. com/ltsp/ ltsp/blob/ master/ ltsp/client/ init/55- snap.sh# L31
https:/