github.com/anonymouse64/snapd@v0.0.0-20210824153203-04c4c42d842d/packaging/ubuntu-14.04/snap.mount.service (about) 1 # trusty needs this to make /snap rshared 2 [Unit] 3 Description=Apply special mount sharing to /snap directory 4 ConditionPathExists=!/run/systemd/initctl/fifo 5 Before=snapd.service 6 7 [Service] 8 Type=oneshot 9 ExecStart=/bin/mkdir -p /snap 10 ExecStart=/bin/mount -o rbind /snap /snap 11 ExecStart=/bin/mount --make-rshared /snap 12 ExecStop=/bin/umount -l /snap 13 RemainAfterExit=yes 14 15 [Install] 16 WantedBy=local-fs-pre.target