From 96623af0af48e6025dfe7e6091438802c76d23b3 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 29 Apr 2019 10:35:42 +0200 Subject: Revert "systemd-conf: drop a obsolete patch" The patch is not obsolete AFAIKT. i.e. the configuration file should NOT make mounts by udevd private or other processes will not be able to see the mount. This reverts commit 3640a12c85df4ac180e38f19038072df6b1d6d55. --- recipes-core/systemd/systemd-conf_%.bbappend | 5 +++++ ...md-udevd.service.in-set-MountFlags-shared.patch | 25 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 recipes-core/systemd/systemd-conf_%.bbappend create mode 100644 recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch diff --git a/recipes-core/systemd/systemd-conf_%.bbappend b/recipes-core/systemd/systemd-conf_%.bbappend new file mode 100644 index 0000000..8ebb6cc --- /dev/null +++ b/recipes-core/systemd/systemd-conf_%.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/systemd:" + +SRC_URI += " \ + file://0001-systemd-udevd.service.in-set-MountFlags-shared.patch \ +" diff --git a/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch b/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch new file mode 100644 index 0000000..4665ea8 --- /dev/null +++ b/recipes-core/systemd/systemd/0001-systemd-udevd.service.in-set-MountFlags-shared.patch @@ -0,0 +1,25 @@ +From 974b3b3c9d723db3bb53fc9bbb40b7c1652c1b67 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Thu, 29 Oct 2015 19:38:50 +0100 +Subject: [PATCH] systemd-udevd.service.in: set MountFlags=shared + +This allows for udevd automounting of drives accessible to all. +--- + units/systemd-udevd.service.in | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in +index fc037b5a5..841d7a83f 100644 +--- a/units/systemd-udevd.service.in ++++ b/units/systemd-udevd.service.in +@@ -24,7 +24,6 @@ ExecStart=@rootlibexecdir@/systemd-udevd + KillMode=mixed + WatchdogSec=3min + TasksMax=infinity +-PrivateMounts=yes + MemoryDenyWriteExecute=yes + RestrictRealtime=yes + RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 +-- +2.13.6 + -- cgit v1.2.3