-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix issue: systemctl daemon-reload would sporadically cause udev handler fail #15253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
files/image_config/systemd/systemd-udevd/systemd-udevd.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# SPDX-License-Identifier: LGPL-2.1-or-later | ||
# | ||
# This file is part of systemd. | ||
# | ||
# systemd is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation; either version 2.1 of the License, or | ||
# (at your option) any later version. | ||
|
||
[Unit] | ||
Description=Rule-based Manager for Device Events and Files | ||
Documentation=man:systemd-udevd.service(8) man:udev(7) | ||
DefaultDependencies=no | ||
After=systemd-sysusers.service systemd-hwdb-update.service | ||
Before=sysinit.target | ||
ConditionPathIsReadWrite=/sys | ||
|
||
[Service] | ||
Type=notify | ||
# Note that udev will reset the value internally for its workers | ||
OOMScoreAdjust=-1000 | ||
Sockets=systemd-udevd-control.socket systemd-udevd-kernel.socket | ||
Restart=always | ||
RestartSec=0 | ||
ExecStart=/lib/systemd/systemd-udevd | ||
ExecReload=udevadm control --reload --timeout 0 | ||
KillMode=mixed | ||
TasksMax=infinity | ||
PrivateMounts=yes | ||
ProtectHostname=yes | ||
MemoryDenyWriteExecute=yes | ||
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 | ||
RestrictRealtime=yes | ||
RestrictSUIDSGID=yes | ||
LockPersonality=yes | ||
IPAddressDeny=any | ||
WatchdogSec=3min |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to apply a patch to the systemd source code, and build a deb package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, this is the best way to do it. But building systemd might take long and need heavy test like you mentioned. How about we apt install systemd with a dedicated hash that contain the fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @qiluo-msft , I just checked, we may use bullseye-backports. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use bullseye-backports in a bullseye host is an acceptable solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any update on bullseye-backports?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have built an image. Now I am running regression on that image.