On 26/04/12 18:11, KP Kirchdoerfer wrote:
> Am 24.04.2012 18:40, schrieb KP Kirchdoerfer:
>> Hi;
>>
>> I've updated my test environment to linux 3.2.16 and updated as usual
>> kernel, initrd.lrp and moddb.lrp.
>>
>> All went well, but if I add a module later and save modules from
>> 'lrcfg', most of the modules get lost:
>>
>> Creating moddb.lrp Please wait: /
>> New Package:
>> -rw-r--r--    1 root     root          9689 Apr 24 18:38 /tmp/moddb.lrp
>> Old Package:
>> -rwxr-xr-x    1 root     root       1345791 Apr 24 18:27
>> /var/lib/lrpkg/mnt0/moddb.lrp
>> Filesystem           1K-blocks      Used Available Use% Mounted on
>> /dev/sda1                60520     31682     28838  52% /mnt
>>
>> Maybe I need to update more after the latest changes?
> Ok, I think I've found the cause for the error reported above
>
> With git commit 615cb73b994da91333a03084b80dc3a53374d8d1
> (http://leaf.git.sourceforge.net/git/gitweb.cgi?p=leaf/bering-uclibc;a=commit;h=615cb73b994da91333a03084b80dc3a53374d8d1)
>
> *** in repo/kmodules/buildtool.mk the expression Type\t\t= module\n ***
> +       for m in `cat mod`; do echo $(ESCKEY) "<File>\n\tSource\t\t=
> lib/modules/__KVER__-$$i/$$m \n\t\
> +       Filename\t= lib/modules/$$(echo $$m|sed
> 's/[a-z]*\/[a-z_/-]*\///g')\n\t\
> +       Type\t\t= binary\n\tType\t\t= module\n\tPermissions\t=
> 644\n</File>">>files.$$i; done;
> ****
>
> The type "module" is added to the list of modules for moddb*, as it's
> done when creating initrd. (before that change  commit type=module is
> only added for modules provided in initrd*.lrp, to avoid saving files
> from initrd)
>
> buildpacket.pl then creates a file /var/lib/lrpkg/moddb-*.modules while
> packaging moddb-*.lrp.
>
> apkg -d searches /var/lib/lrpkg for *.modules to add it's content to the
> exclude-list before saving moddb.
>
> Andrew, have you added Type\t\t= module\n by intentionally cause it's
> used elsewhere?
>
> kp
>
Yes, it was a mistake, I copied code from initrd package to kmodules 
package, but missed to remove type=module.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to