SPECS: udev.spec - add a helper script from Mandriva (does it need...

Jakub Piotr Cłapa loc w toya.net.pl
Śro, 19 Paź 2005, 02:17:45 CEST


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?

> +# 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

> @@ -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)

-- 
Regards,
Jakub Piotr Cłapa



Więcej informacji o liście dyskusyjnej pld-devel-pl