Skip to content
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

Ensure that NVME symlinks are not lost on udev change events (main branch) #24

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

nmeyerhans
Copy link
Contributor

Fixes #22

Description of changes:

This is the same fix as #23, but for the main branch. #9 was overly aggressive in the events that it filtered, leading to a regression where any udev change event would remove the symlinks for the corresponding devices. This change ensures that the rules trigger for both "add" and "change" events, and that only "remove" events are skipped.

spec file is updated for a forthcoming 2.0.1 release.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Noah Meyerhans added 3 commits February 11, 2022 10:10
We use xargs from the findutils package, which is no longer installed
by default in the AL 2022 container images.
Fixes amazonlinux#22

Symlinks need to be created on both add and change udev events,
otherwise they're lost any time a change event is opened, e.g. when a
device is open in read/write mode, e.g. when creating or mounting a
filesystem.
@nmeyerhans nmeyerhans changed the title Ensure that NVME symlinks are lost on udev change events (main branch) Ensure that NVME symlinks are not lost on udev change events (main branch) Feb 14, 2022
@nmeyerhans nmeyerhans merged commit 7442a4d into amazonlinux:main Feb 14, 2022
@nmeyerhans nmeyerhans deleted the main-udev-bugfix branch February 14, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NVME block-device-mapping symlinks are not created reliably
2 participants