Skip to content

Commit

Permalink
automount.service: add pkg
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
donald committed Feb 15, 2017
1 parent b3acd34 commit 7fe2202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc_systemd_units/automount.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7fe2202

Please sign in to comment.