[OE-core] [PATCH 14/16] udev: run depmod if modules.dep doesn't exist
Koen Kooi
koen at dominion.thruhere.net
Wed Jan 4 18:51:00 UTC 2012
Op 4 jan. 2012, om 18:15 heeft Richard Purdie het volgende geschreven:
> On Wed, 2011-12-28 at 19:55 +0000, Otavio Salvador wrote:
>> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
>> ---
>> meta/recipes-core/udev/udev/init | 5 +++++
>> meta/recipes-core/udev/udev_164.bb | 2 +-
>> 2 files changed, 6 insertions(+), 1 deletions(-)
>>
>> diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init
>> index 322e7e7..8d89d51 100644
>> --- a/meta/recipes-core/udev/udev/init
>> +++ b/meta/recipes-core/udev/udev/init
>> @@ -52,6 +52,11 @@ if [ "$DEVCACHE" != "" ]; then
>> fi
>> fi
>>
>> +if [ -x /sbin/depmod ] && [ ! -e "/lib/modules/$(uname -r)"/modules.dep ]; then
>> + mkdir -p /lib/modules/$(uname -r)
>> + depmod -ae
>> +fi
>> +
>> # make_extra_nodes
>> kill_udevd > "/dev/null" 2>&1
>
> Why does udev need to do this instead of the kernel module postinstalls?
> This strikes me as the wrong thing to be doing here...
Udev runs before those installs get run on first boot.
regards,
Koen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120104/1a8f6793/attachment-0002.sig>
More information about the Openembedded-core
mailing list