I'm using ubuntu 20.04 WSL2 on my windows 11 machine, every time I open my ubuntu 20.04 WSL2 I realize it lost snap configuration that I made for my lxc, lxd home lab, but the container is still saved, I'm only losing snap config so I have to run the snap command aging each time.
These are the command I have to run each time when closing, opening my ubuntu 20.04 WSL2:
sudo apt-get update && sudo apt-get install -yqq daemonize dbus-user-session fontconfigsudo daemonize /usr/bin/unshare --fork --pid --mount-proc /lib/systemd/systemd --system-unit=basic.targetexec sudo nsenter -t $(pidof systemd) -a su - $LOGNAME