I have to restart snapd and snap.wekan.wekan everytime

I have installed the wekan kanbas application with snap in an lxc container but I ran into the problem that I must run these commands every time the container is started again:

lxc exec wekan2 – sudo –user ubuntu –login

$ sudo mount -t tmpfs tmpfs /sys/kernel/security/
$ sudo service snapd restart
$ sudo systemctl restart snap.wekan.mongodb
$ sudo systemctl restart snap.wekan.wekan

I have applied what I have investigated in the following topics of this forum, deactivating the armor app with the following command, but I don’t understand why I still have the same problem:



Could you help me with some clues to continue researching a solution for this please?

The mount command you have shown here will not be persisted between container reboots, so you will need to have the container perform this mount via its own init system when it starts (before the snaps that depend on it are started).

You should be able to achieve this using systemd mount services: https://www.freedesktop.org/software/systemd/man/systemd.mount.html