611449dc88
A workaround to back port the fix for a systemd issue. The systemd issue: systemd/systemd#24668 The systemd PR to fix the issue: https://github.com/systemd/systemd/pull/24673/files The formal solution should upgrade systemd to a version that contains the fix. But, systemd is a very basic service, upgrading systemd requires heavy test.
24 lines
849 B
Diff
24 lines
849 B
Diff
# -------------------------------------------------------------------
|
|
# Patch for /lib/systemd/system/systemd-udevd.service
|
|
# Fix issue: The udev rule may fail to be executed because the
|
|
# daemon-reload command is executed in parallel
|
|
# Github issue: https://github.com/systemd/systemd/issues/24668
|
|
# Github PR: https://github.com/systemd/systemd/pull/24673
|
|
# -------------------------------------------------------------------
|
|
@@ -16,8 +16,6 @@
|
|
ConditionPathIsReadWrite=/sys
|
|
|
|
[Service]
|
|
-DeviceAllow=block-* rwm
|
|
-DeviceAllow=char-* rwm
|
|
Type=notify
|
|
# Note that udev will reset the value internally for its workers
|
|
OOMScoreAdjust=-1000
|
|
@@ -29,7 +27,6 @@
|
|
KillMode=mixed
|
|
TasksMax=infinity
|
|
PrivateMounts=yes
|
|
-ProtectClock=yes
|
|
ProtectHostname=yes
|
|
MemoryDenyWriteExecute=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|