Using snap with Silverblue

I am trying to use Authy Install Twilio Authy for Linux using the Snap Store | Snapcraft on Fedora 33 Silverblue .

I got this error:

snap install authy --beta
Setup snap "snapd" (10707) security profiles                                   \


2021-02-03T20:20:50+08:00 INFO Waiting for automatic snapd restart...
authy (beta) 1.8.3 from Twilio Authy installed
[sf@vostro ~]$ 
[sf@vostro ~]$ 
[sf@vostro ~]$ 
[sf@vostro ~]$ authy
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Sorry, home directories outside of /home are not currently supported. 
See https://forum.snapcraft.io/t/11209 for details.

How can I use snap apps with Silverblue?

In Silverblue, your home directory is not in /home, but in /var/home and /home is only a link.

What is the output of echo $HOME? If it is something like /var/home/username you could try HOME=/home/username authy. I don’t use snap, so this is not tested. Just a suggestion.

Thanks for the suggestions.

$ echo $HOME
/var/home/username

I tried
HOME=/home/username authy
HOME=/var/home/username authy

both give same error:
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Sorry, home directories outside of /home are not currently supported.
See https://forum.snapcraft.io/t/11209 for details.

Did you try to bind mount /var/home/user to /home/user as described in https://forum.snapcraft.io/t/11209 ?

Hm. The forum post linked in the error description suggests to bind-mount your home directory to /home/username.

In your case that would mean rm /home, mkdir /home and mount --bind /var/home/username /home/username. But I’m not sure how Silverblue behaves when /home is not a symlink, so be careful or don’t do it at all.

1 Like

Just tried with

mount --bind /var/home/username /home/username

Still give the same error.

As rootfs is readonly in Silverblue, rm /home result with error:
rm: cannot remove ‘/home’: Operation not permitted

You are right. Is unlocking the current deployment an option then, or does it just unlock /usr?

$ sudo ostree admin unlock
Development mode enabled.  A writable overlayfs is now mounted on /usr.
All changes there will be discarded on reboot.