util/udev: fix path for udev device inhibitor
The udev inhibitor rules are checking for `device-$major:$minor`
but we created them with `f"device-{major}-{minor}"`. So they
did indeed not actually work. Fix that.
This commit is contained in:
parent
8102f20d23
commit
6300a80c84
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ class UdevInhibitor:
|
|||
@classmethod
|
||||
def for_device(cls, major: int, minor: int, lockdir=LOCKDIR):
|
||||
"""Inhibit a device given its major and minor number"""
|
||||
path = pathlib.Path(lockdir, f"device-{major}-{minor}")
|
||||
path = pathlib.Path(lockdir, f"device-{major}:{minor}")
|
||||
ib = cls(path)
|
||||
ib.inhibit()
|
||||
return ib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue