[yocto] customizing system configuration files in my image

Daniel. danielhilst at gmail.com
Fri Jul 1 06:19:31 PDT 2016


After that you can create a image recipe and inherit from that .bbclass. If
you don't want to create a .bbclass you can use this same aproach directly
on your image recipe :)

Regards,

2016-07-01 10:16 GMT-03:00 Daniel. <danielhilst at gmail.com>:

> Hi Ottavio,
>
> There is more than way to do it. In your case I would use
> ROOTFS_POSTPROCESS_COMMAND to modify files prior the creation of the rootfs.
>
> You may:
> - Create a .bbclass for your image inheriting core-image for example.
> - Create a shell function to do some sed magic.
> - Setup that function to run at rootfs creation.
>
> Here is a example, I hope this helps :)
> https://gist.github.com/gkos/4e981dffb929886cd8a6c5ed738b7b08
>
> Regards,
>
> 2016-07-01 6:11 GMT-03:00 Ottavio Campana <o.campana at videotec.com>:
>
>> Hello,
>>
>>
>>
>> I would like to customize an image I am developing based on core image
>> minimal.
>>
>>
>>
>> Particularly, I’d like to customize the files /etc/network/interfaces and
>> /etc/inittab .
>>
>>
>>
>> What should I do achieve that?
>>
>>
>>
>> Thank you
>>
>>
>>
>> Ottavio
>>
>>
>>
>> --
>>
>> [image: Videotec Logo] <http://www.videotec.com/>
>>
>> *Ottavio Campana*
>> *Product Manager - Electronic R&D Department*
>>
>> Office +39.0445.697.411  Fax +39.0445.697.414
>> Address  VIDEOTEC S.p.A. - Via Friuli, 6 - 36015 Schio (Vicenza) - Italy
>>
>>
>>
>>
>> *Any information herein transmitted only concerns the person or the
>> company named in the address and is deemed to be confidential It is
>> strictly forbidden to transmit, post, forward or otherwise use said
>> information to anyone other than the recipient. If you have received this
>> message by mistake, please contact the sender and delete any relevant
>> information from your computer. This mailbox is only meant for sending and
>> receiving messages pertaining business matters and any other use for
>> personal purposes is forbidden and unauthorized. Therefore, any email sent
>> and received will be handled as ordinary business messages and subject to
>> the company's own rules, and may thus be read also by people other than the
>> user named in the mailbox address. *
>>
>> [image: Twitter Logo blue] <http://www.videotec.com/twitter>   [image:
>> Youtube logo red] <http://www.videotec.com/youtube>   [image: Linkedin
>> logo blue] <http://www.videotec.com/linkedin>
>>
>>
>>
>>
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
>
> --
> *"Do or do not. There is no try"*
>   *Yoda Master*
>



-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160701/f748a378/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.gif
Type: image/gif
Size: 1385 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160701/f748a378/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1161 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160701/f748a378/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1393 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160701/f748a378/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 3602 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160701/f748a378/attachment-0001.png>


More information about the yocto mailing list