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
Removing watch makes symlink under /dev/disk/by-uuid unreliable #23746
Comments
|
When a device is processed by udevd, you should not touch the device (partitioning, creating fs, etc). Also, when you want to touch a device, then it is recommended that the device is locked to make udevd not try to process it. See https://systemd.io/BLOCK_DEVICE_LOCKING/ for more details. Since v251, we provide Note, I am not familiar with |
For older systemd (v250 or older), try to use |
Or, in other words, the behavior is unfortunately expected. The above reproducer should introduce many races. |
https://systemd.io/BLOCK_DEVICE_LOCKING/ is helpful. I think the race is between mkfs and udevd. After serching |
systemd version the issue has been seen with
Used distribution
Linux kernel version used (
uname -a
)CPU architecture issue was seen on
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
Additional program output to the terminal or log subsystem illustrating the issue
The text was updated successfully, but these errors were encountered: