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

Partition: Mask DM/LVM rules, don't stop udev #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jrha
Copy link
Member

@jrha jrha commented Feb 9, 2024

While partitions are being created and wiped, mask udev rules related to Device Mapper and LVM to prevent partitions from being activated automatically. This replaces the previous solution of completely stopping udev during these operations, which prevented the use of device names created by the persistent storage rules.

Fixes #105.

While partitions are being created and wiped, mask udev rules related to
Device Mapper and LVM to prevent partitions from being activated
automatically. This replaces the previous solution of completely
stopping udev during these operations, which prevented the use of
device names created by the persistent storage rules.

Fixes quattor#105.
@jrha
Copy link
Member Author

jrha commented Feb 9, 2024

This solution works fine for us at RAL, but it's not been exhaustively tested.

@jrha
Copy link
Member Author

jrha commented Feb 9, 2024

In theory systemd-udev uses inotify to watch /usr/lib/udev/rules.d/ and /etc/udev/rules.d, but we could also throw a udevadm control --reload-rules && udevadm trigger in there to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Pausing udev makes /dev/disk/by-* unusable for installations
1 participant