udev-re-enable-mount-propagation-for-udevd.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  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. Upstream-Status: Backport [http://http.debian.net/debian/pool/main/s/systemd/systemd_215-17+deb8u4.debian.tar.xz]
  5. laptop-mode-tools remounts file systems from within a udev rule to apply
  6. certain mount options. With MountFlags=slave, those mounts then become private
  7. to the systemd-udevd namespace and are no longer accessible from outside the
  8. namespace.
  9. While the root cause is the broken behaviour of laptop-mode-tools, with mount
  10. propagation turned off, this can result in a read-only root file system.
  11. Therefore revert the relevant parts from commit
  12. c2c13f2df42e0691aecabe3979ea81cd7faa35c7 to re-enable mount propagation for
  13. udevd.
  14. Once affected packages have been fixed, this patch should be dropped
  15. again.
  16. Closes: #762018
  17. diff --git a/units/systemd-udevd.service.in b/units/systemd-udevd.service.in
  18. index e7216d6..1e9a600 100644
  19. --- a/units/systemd-udevd.service.in
  20. +++ b/units/systemd-udevd.service.in
  21. @@ -21,6 +21,5 @@ Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket
  22. Restart=always
  23. RestartSec=0
  24. ExecStart=@rootlibexecdir@/systemd-udevd
  25. -MountFlags=slave
  26. KillMode=mixed
  27. WatchdogSec=1min