diff options
-rw-r--r-- | meta/recipes-core/systemd/systemd/udev-re-enable-mount-propagation-for-udevd.patch | 31 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_229.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/udev-re-enable-mount-propagation-for-udevd.patch b/meta/recipes-core/systemd/systemd/udev-re-enable-mount-propagation-for-udevd.patch new file mode 100644 index 0000000000..23e22d40e6 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/udev-re-enable-mount-propagation-for-udevd.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From: Michael Biebl <biebl@debian.org> | ||
2 | Date: Sat, 27 Sep 2014 04:19:24 +0200 | ||
3 | Subject: udev: re-enable mount propagation for udevd | ||
4 | |||
5 | Upstream-Status: Backport [http://http.debian.net/debian/pool/main/s/systemd/systemd_215-17+deb8u4.debian.tar.xz] | ||
6 | |||
7 | laptop-mode-tools remounts file systems from within a udev rule to apply | ||
8 | certain mount options. With MountFlags=slave, those mounts then become private | ||
9 | to the systemd-udevd namespace and are no longer accessible from outside the | ||
10 | namespace. | ||
11 | While the root cause is the broken behaviour of laptop-mode-tools, with mount | ||
12 | propagation turned off, this can result in a read-only root file system. | ||
13 | Therefore revert the relevant parts from commit | ||
14 | c2c13f2df42e0691aecabe3979ea81cd7faa35c7 to re-enable mount propagation for | ||
15 | udevd. | ||
16 | |||
17 | Once affected packages have been fixed, this patch should be dropped | ||
18 | again. | ||
19 | |||
20 | Closes: #762018 | ||
21 | diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in | ||
22 | index e7216d6..1e9a600 100644 | ||
23 | --- a/units/systemd-udevd.service.in | ||
24 | +++ b/units/systemd-udevd.service.in | ||
25 | @@ -21,6 +21,5 @@ Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket | ||
26 | Restart=always | ||
27 | RestartSec=0 | ||
28 | ExecStart=@rootlibexecdir@/systemd-udevd | ||
29 | -MountFlags=slave | ||
30 | KillMode=mixed | ||
31 | WatchdogSec=1min | ||
diff --git a/meta/recipes-core/systemd/systemd_229.bb b/meta/recipes-core/systemd/systemd_229.bb index a2d35f8241..ae63c58056 100644 --- a/meta/recipes-core/systemd/systemd_229.bb +++ b/meta/recipes-core/systemd/systemd_229.bb | |||
@@ -54,6 +54,7 @@ SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \ | |||
54 | file://0021-include-missing.h-for-getting-secure_getenv-definiti.patch \ | 54 | file://0021-include-missing.h-for-getting-secure_getenv-definiti.patch \ |
55 | file://0022-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch \ | 55 | file://0022-socket-util-don-t-fail-if-libc-doesn-t-support-IDN.patch \ |
56 | file://0023-build-sys-fix-build-with-libgrcypt-disabled.patch \ | 56 | file://0023-build-sys-fix-build-with-libgrcypt-disabled.patch \ |
57 | file://udev-re-enable-mount-propagation-for-udevd.patch \ | ||
57 | " | 58 | " |
58 | SRC_URI_append_libc-uclibc = "\ | 59 | SRC_URI_append_libc-uclibc = "\ |
59 | file://0002-units-Prefer-getty-to-agetty-in-console-setup-system.patch \ | 60 | file://0002-units-Prefer-getty-to-agetty-in-console-setup-system.patch \ |