Skip to content

udev path rules not working? #12833

@ctheune

Description

@ctheune

When adding a package to services.udev.packages (to enable its rules) and services.udev.path (to get is binaries into the search path) I found that the path in 00-path.rules is properly constructed (I find the binaries from my package added to bin/) but when referencing the binary it's not found. (at least that's what I guess - I'm not getting any useful debugging output)

Instead of referring to my binary this way:

SUBSYSTEM=="block", PROGRAM="fc-get-disk-alias %k", SYMLINK+="%c"

(fc-get-disk-alias is in the path from 00-path.rules)

I have to explicitly construct a path when building the rule:

SUBSYSTEM=="block", PROGRAM="/nix/store/5dr5hyb5mimninry2wy413srb5q9pl2i-fc-manage-0.1/bin/fc-get-disk-alias %k", SYMLINK+="%c"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions