[yocto] Recipe runs before network is established on target, causes problems.

Eirik Solberg Hamnvik eirik.solberg.hamnvik at tomra.com
Tue Jul 7 02:02:17 PDT 2015


Hey!

I have a recipe where I in the pkg_postinst_mypackage () function runs apt-get update on first boot only.
This doesn't work. I've seen the logfile which says:

Cannot initiate the connection to xxx.xxx.xxx.xxx - connect (101: Network is unreachable).

If I manually go to the terminal after it has booted and type "apt-get update" it works perfectly fine.
Guess that means that my code tries to run before the network settings are established.
Is there some way I could manage this?

Eirik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150707/3871e3c5/attachment.html>


More information about the yocto mailing list