From ae9349ac4eb379fafe169ae7992a0049bef86dec Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 22 Mar 2021 16:21:01 +0100 Subject: [PATCH] automount.service: Remove shared subtree mount setup 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 --- misc_systemd_units/automount.service | 1 - 1 file changed, 1 deletion(-) diff --git a/misc_systemd_units/automount.service b/misc_systemd_units/automount.service index 7bea9ba..e9d1c4f 100644 --- a/misc_systemd_units/automount.service +++ b/misc_systemd_units/automount.service @@ -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