News for hackers. Stuff that matters.
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @11:56AM (#34029578)
Snap really sucks because it forces you to have a /home/user/snap folder on the same filesystem as /. If you don't have that (e.g. home folder symlinked to another filesystem), then snap starts breaking in very weird ways.

https://forum.snapcraft.io/t/limitations-in-snapd/9718

This actually means that at some point I will have to move away from Ubuntu.

Re:Valve Is Paying Open-Source Developers to Work on Proton,... by bityard on Saturday December 17, 2022 @12:05PM (#34029688)
Debian is very nice these days if you don't mind a tiny bit of enabling non-free repos. Or Pop OS for a more It Just Works approach, if their desktop suits your fancy.
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @12:15PM (#34029780)
Right now I'm stuck with nVidia's Jetson line of products which is vendor-locked to Ubuntu. The problem is that while you can extend them with a large SSD drive, these products have a really small disk used for /. I could run another OS inside a Docker container, all to avoid this limitation in snap, but of course things will not become prettier.
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by Y_Y on Saturday December 17, 2022 @01:40PM (#34030761)
You've been able to run the root on (nvme) SSD for a while now with Dusty's scripts, and more recently with the official installer.

I have great sympathy though, I am also using Ubuntu on Jetson and resent snap, especially since the new releases are 20.04 which have it more tightly integrated.

Re:Valve Is Paying Open-Source Developers to Work on Proton,... by lgeek on Saturday December 17, 2022 @02:07PM (#34031035)
You can change the root parameter in extlinux.conf to point to whatever block storage you want it to

Or reconfigure U-Boot to load extlinux.conf (and the kernel image, initrd, etc) entirely from other type of media. IIRC NVMe, USB and external SDs are all supported

Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @02:50PM (#34031470)
Thanks, I'll have to look into it.
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by Gordonjcp on Saturday December 17, 2022 @01:18PM (#34030536)
Why don't you just mount your big disk on /home, like we used to do in the olden days?
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @01:31PM (#34030682)
Because I suspect that snap uses both /home/user/snap and /var/.../snap, and needs them to be on the same disk (to allow hardlinking, I suppose).
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by Gordonjcp on Saturday December 17, 2022 @01:57PM (#34030930)
Have you tried it?

Sounds like something a bindmount might fix.

Back in the olden days before simple and convenient packaging systems like snap had been invented, we had to get pretty creative so that stuff didn't freak out because it was split across filesystems.

Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @02:51PM (#34031488)
I haven't tried it, but I can remember people on forums having mixed results with a bindmount. I guess there is no guarantee that it works until Snap has been running for a while without problems.
Re:Valve Is Paying Open-Source Developers to Work on Proton,... by manchmalscott on Saturday December 17, 2022 @04:30PM (#34032446)
I don't see anything there about needing to be on the same filesystem, just that the path is of the form /home/$user/snap. It says that having a home directory that isn't mounted at boot doesn't work, but that's different. Am I missing something?

I'm not sure why you'd need to symlink /home/ to another filesystem instead of just mounting that on /home/ directly, that's what I'm doing with root on ZFS and a separate dataset for /home/ with it's own mountpoint.

Re:Valve Is Paying Open-Source Developers to Work on Proton,... by amelius on Saturday December 17, 2022 @05:18PM (#34032869)
Snap also stores stuff in /var/snap, and that probably also has to live on the same filesystem.

Anyway, now I'm working around limitations in Snap instead of Snap working around its own limitations in certain circumstances. The fact that Snap shows weird behavior and illogical error messages in these cases tells me that Snap is not (yet) up to the task of fulfilling this rather fundamental role in my OS.