SPECS: udev.spec - add a helper script from Mandriva (does it
need...
Fryderyk Dziarmagowski
freetz at gmx.net
Wed Oct 19 08:18:20 CEST 2005
--- Jakub Piotr Cłapa <loc at toya.net.pl> wrote:
> jpc wrote:
> > +# from Mandriva CVS:
> > +# http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/udev/udev_import_usermap?rev=1.5
> > +Source7: udev_import_usermap
>
> This can be useful when one wants to port some legacy hotplug usermaps
> to udev rules painlessly. Maybe it shouldn't be installed even?
Nice thing. Now we can port more hotplug (like digicam) stuff without
PITA ;)
> > +# Needed for the automatic module loading w/o hotplug to work
> > +# see:
> > +# http://qa.mandrivalinux.com/twiki/bin/view/Main/Udev
> > +# http://lwn.net/Articles/123932/
> > +Source8: %{name}-modprobe.rules
>
> It works for me (should be coldplug capable too upon call to udevstart).
> Do we switch to this stuff (and add O: hotplug?)
>
> Needs kernel.hotplug=/sbin/udevsend
Adding O: is mandatory now. That's the last piece to get rid of hotplug
crap.
> > @@ -217,6 +227,7 @@
> > %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/udev/udev.conf
> > %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/udev/rules.d/50-udev.rules
> > %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/udev/rules.d/999-firmware.rules
> > +%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/udev/rules.d/999-modprobe.rules
> > %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/scsi_id.config
>
> Why are these files noreplace? The sysadmin can override this with his
> own rules by adding his own files with smaller numbers. (while still
> allowing upstream updates)
I think it's useful for now. Once they become more mature we can remove
'noreplace'
--
Fryderyk Dziarmagowski
More information about the pld-devel-en
mailing list