Skip to content

SYMLINK -= supportΒ #289

@FiloSottile

Description

@FiloSottile

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions