$ lxc launch ubuntu:lunar lp-2039268 Creating lp-2039268 Starting lp-2039268 $ lxc exec lp-2039268 bash # sed -i -e's/lunar/mantic/' /etc/apt/sources.list && apt update && apt install systemd # ls -l /run/systemd/generator/snap.mount -rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/generator/snap.mount #
in a container the mount unit appears not to actually activate, but this is enough to reproduce the generation of the unit.
$ lxc launch ubuntu:lunar lp-2039268 sources. list && apt update && apt install systemd generator/ snap.mount generator/ snap.mount
Creating lp-2039268
Starting lp-2039268
$ lxc exec lp-2039268 bash
# sed -i -e's/lunar/mantic/' /etc/apt/
# ls -l /run/systemd/
-rw-r--r-- 1 root root 274 Oct 18 05:49 /run/systemd/
#
in a container the mount unit appears not to actually activate, but this is enough to reproduce the generation of the unit.