Comment 1 for bug 1867415

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

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