Skip to content

Commit

Permalink
automount.service: Remove shared subtree mount setup
Browse files Browse the repository at this point in the history
It is no longer needed to use mount `mount --make-shared` on the autofs
mountpoints, as systemd sets the root mount to MS_SHARED since version
189 [1].

[1]: https://github.com/systemd/systemd/commit/b3ac5f8cb98
  • Loading branch information
donald committed Mar 22, 2021
1 parent 7212b1e commit ae9349a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion misc_systemd_units/automount.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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 pkg;do mount --make-shared /$d;done"
PIDFile=/run/autofs-running
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
Expand Down

0 comments on commit ae9349a

Please sign in to comment.