Ubuntu Pastebin

Paste from zyga at Wed, 16 Nov 2016 16:53:02 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/debian/snapd-mount.service b/debian/snapd-mount.service
index 02da1ad..ddffef7 100644
--- a/debian/snapd-mount.service
+++ b/debian/snapd-mount.service
@@ -3,6 +3,8 @@ Description=Remount /snap with shared namespaces
 Before=local-fs.target
 
 [Service]
+Type=oneshot
+# XXX: this is a bit ugly, can we do it via a .mount unit? can we do it reliably?
 ExecStart=/bin/sh -c 'set -x; mkdir -p /snap && mount --rbind /snap /snap && mount --make-rshared /snap'
 ExecStop=/bin/umount -l /snap
 RemainAfterExit=yes
Download as text