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

SYMLINK -= support #289

Open
FiloSottile opened this issue Oct 28, 2024 · 0 comments
Open

SYMLINK -= support #289

FiloSottile opened this issue Oct 28, 2024 · 0 comments

Comments

@FiloSottile
Copy link

Would it be possible to sync systemd/systemd#26081 from upstream, to support SYMLINK-= actions?

It would allow creating a rules file like

ENV{DEVTYPE}=="disk", ATTR{wwid}=="?*", SYMLINK-="disk/by-id/nvme-$attr{wwid}"
ENV{DEVTYPE}=="partition", ATTRS{wwid}=="?*", SYMLINK-="disk/by-id/nvme-$attr{wwid}-part%n"
ENV{DEVTYPE}=="disk", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK-="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}"
ENV{DEVTYPE}=="partition", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK-="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}-part%n"

to drop the WWN by-id symlinks, instead of having to fork the entire upstream 60-persistent-storage.rules. (The reason to remove them is that they are less useful as ZFS labels, and get randomly picked up by zpool import -d /dev/disk/by-id.)

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

No branches or pull requests

1 participant