From 7fe22024b6156bc53ff9b63b6f20fcc3c38089e9 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 15 Feb 2017 11:14:58 +0100 Subject: [PATCH] automount.service: add pkg We need to make all autofs mount points shared, otherwise automount doesn't work well with mount namespaces, because automount can neither unmount in other namespaces nor does it mount on top of directories which already have a mount in another namespace ("Too many levels of symbolic link"-phenomenon) --- misc_systemd_units/automount.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc_systemd_units/automount.service b/misc_systemd_units/automount.service index 5e8737e..eed64cf 100644 --- a/misc_systemd_units/automount.service +++ b/misc_systemd_units/automount.service @@ -7,7 +7,7 @@ After=basic.target Type=forking ExecStartPre=/usr/sbin/make-automaps ExecStart=/usr/sbin/automount -v -ExecStartPost=/usr/bin/bash -c "for d in home jbod confidential project package scratch src;do mount --make-shared /$d;done" +ExecStartPost=/usr/bin/bash -c "for d in home jbod confidential project package scratch src pkg;do mount --make-shared /$d;done" PIDFile=/run/autofs-running ExecReload=/bin/kill -HUP $MAINPID