#887 closed defect (fixed)
No room for overriding LFS udev rules
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Book | Version: | TESTING |
Severity: | normal | Keywords: | |
Cc: |
Description
I want to override the default "cdrom" udev rule locally on my computer, but I don't want to touch the file with udev rules provided by LFS. Specifically, I want to put the following rules in a separate file:
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/model", \
RESULT="PHILIPS CDD5301", NAME="%k", SYMLINK="dvd cdrw", \ GROUP="cdrom"
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/model", \
RESULT="SAMSUNG CD-ROM SC-148F", NAME="%k", SYMLINK="cdrom", \ GROUP="cdrom"
I want them to take priority over the defaults provided by LFS. I can achieve that by naming the file properly - it should go lexicographically before anything provided, i.e. before 00-lfs.rules. I.e., 00-aep.rules is ok, 00-media.rules will not work.
Not very much room... I wish we had a 25-lfs.rules file instead of 00-lfs.rules
- then just numbering the file with my custom rules below 25 would do what I want.
Change History (5)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
Does the 00-lfs.permissions file need changing too? I'd think it'd be better to be consistent and have them both set to 25-lfs.*, no?
comment:3 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 20 years ago
Keywords: | VERIFIED added |
---|
The bug is indeed fixed in both testing and unstable books. Marking as verified.
comment:5 by , 20 years ago
Keywords: | VERIFIED removed |
---|
Agreed, this should be changed as Alexander has suggested.