[poky] Write-protect $DL_DIR

Gary Thomas gary at mlbassoc.com
Tue Dec 21 08:52:51 PST 2010


On 12/21/2010 09:44 AM, Richard Purdie wrote:
> On Tue, 2010-12-21 at 08:45 -0700, Gary Thomas wrote:
>> In my quest for a well-packaged Poky that I can distribute
>> to my customers, I'd like to give them a pre-populated $DL_DIR
>> tree (also in response to those customers that have little or
>> no net access).  This would likely be in /opt/XYZ and practice
>> would dictate that it be read-only.
>>
>> Sadly, this doesn't work.  When I try to build Poky with a
>> read-only $DL_DIR, it simply hangs on every 'fetch' step.
>>
>> Note: I could avoid this problem (although I think it's a
>> bug even if it should never be experienced) by being able
>> to easily provide source mirrors for the packages.  So far,
>> I've not figured out how to do this; I'd like to add my
>> own mirror lists, similar to those in meta/classes/poky.bbclass
>> Would this be a way forward?  If so, how?
>>
>> Thanks for any ideas
>
> Make the readonly directory a file:// source in PREMIRRORS. You can use
> the SSTATE_MIRRORS syntax in local.conf to do this without a class file.
>
> It won't actually copy them to DL_DIR if they're already local.

This sounds good.  Do you have an example of what to put into
local.conf?  I'm not sure what you mean by using the SSTATE_MIRRORS
syntax above.

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the poky mailing list