From 7212b1e2c94e827f1f7dc1d9e256ce0481e13a0b Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 22 Mar 2021 16:20:32 +0100 Subject: [PATCH 1/2] automount.service: Remove dangling whitespace --- 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 39f199d..7bea9ba 100644 --- a/misc_systemd_units/automount.service +++ b/misc_systemd_units/automount.service @@ -6,7 +6,7 @@ After=basic.target [Service] Type=forking ExecStartPre=/usr/sbin/make-automaps -ExecStart=/usr/sbin/automount -v +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 From ae9349ac4eb379fafe169ae7992a0049bef86dec Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 22 Mar 2021 16:21:01 +0100 Subject: [PATCH 2/2] 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