#include <hallo.h>
* Bernd Schubert [Sat, Jul 22 2006, 03:55:03PM]:
> Hi,
> 
> while I just build some kernel module packages for our clients and
> installing them, I think I found a bug applying to almost all kernel module
> packages.
> 
> Most packages have a file like postinst.modules.in with something like
> 
> #!/bin/sh
> set -e
> 
> if [ "`uname -r`" = "_KVERS_" ] ; then
>    depmod -a &
> fi
> 
> Now imagine you are installing the package on a fileserver in a chroot and
> the file servers kernel version is different from _KVERS_. Furthermore, all
> clients mount their root directory read-only from the server.
> So /lib/modules/modules.dep will never be updated.
> 
> Why is not something like this used?

Because someone was too stupid, most likely me while creating bad
examples for others. Time for mass-bugfiling, IMO.

Eduard.

> #!/bin/sh
> set -e
> 
> SYSTEMMAP=/boot/System.map-_KVERS_
> 
> if [ -f $SYSTEMMAP ] ; then
>         depmod -ae -F $SYSTEMMAP _KVERS_
> elif [ "`uname -r`" = "_KVERS_" ] ; then
>         depmod -a &
> fi
> 
> Thanks,
>         Bernd
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 

-- 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to