UDEV - Not Leaving Well Enough Alone

Bruce Dubbs bruce.dubbs at gmail.com
Sat Nov 21 06:47:26 PST 2009


alupu at verizon.net wrote:
> Hello,
> 
> NOTE:  I originally sent a draft copy by mistake.
>  Please disregard and accept my apologies
>  and this "cleaned-up" post.
> 
> System: Development LFS
> i686-pc-linux-gnu, 2.6.31.6, Udev-147
> 
> In files
>  /lib/udev/rules.d/50-udev-default.rules
>  /etc/udev/rules.d/55-lfs.rules
> there's a rule
>  
> KERNEL=="fd[0-9]", ACTION=="add|change", \
> ATTRS{cmos}=="?*", RUN+="create_floppy_devices"
> etc.
> 
> which creates (in /dev) a number of krazy devices:
> 
> fd0u1120 fd0u1600 fd0u1722 fd0u1760 fd0u1920
> fd0u720 fd0u820 fd0u1040 fd0u1440 fd0u1680
> fd0u1743 fd0u1840 fd0u360 fd0u800 fd0u830
> 

> Questions:
> 1. How can I disable a rule now without using the
> simple "last_rule" trick like in the olden times?
> I did scan the "new" OPTIONS in the latest udev
> manual but none seemed too attractive, at least
> to my untrained eyes.

Why not just modify the rule in /etc/udev/rules.d/55-lfs.rule if you 
don't want it?

   -- Bruce



More information about the lfs-support mailing list