RE: variable expansion. Where are you assigning OPKGLIBDIR its new value? If it 
is in an opkg bbappends in your own layer, I wonder if the bbappends is not 
being parsed during rootfs creation.


RE: the partitions. Hmm, yeah. I agree that it probably isn't sensible to 
expect the opkg state information to be placed into /data-os during rootfs 
creation.

Does your usecase support running opkg at runtime? If not, you might just 
accept that the state information stays on the read-only partition.

If runtime opkg operations are supported, you might make a one-time initscript 
that runs on first-boot and moves the sstate information to /data-os.

Sorry if my emails are strangely formatted by the way. I'm in a weird temporary 
email setup.


---
Alex Stewart
Software Engineer. PR&D Security, RTOS.
T&M, Emerson Electric Corp. (NI)

________________________________________
From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of 
Martin Siegumfeldt <m...@gomspace.com>
Sent: Wednesday, September 18, 2024 04:39
To: Stewart, Alex; yocto@lists.yoctoproject.org
Subject: [EXTERNAL] Re: [yocto] read-only-rootfs and opkg

Hi Alex, Thanks for your input - highly appreciated. It appears you have a 
point regarding the variable assignment - 'bitbake-getvar OPKGLIBDIR' indeed 
indicates the intended assignment does not occur: $ bitbake-getvar --value 
OPKGLIBDIR NOTE: 

Hi Alex,

Thanks for your input - highly appreciated.

It appears you have a point regarding the variable assignment - 'bitbake-getvar 
OPKGLIBDIR' indeed indicates the intended assignment does not occur:
$ bitbake-getvar --value OPKGLIBDIR
NOTE: Starting bitbake server...
/var/lib

Doing the strong assignment (OPKGLIBDIR = "/data-os/opkg") does not make a 
difference, which puzzles me as all assigments (I am able to grep) are weak:

$ rg ^OPKGLIBDIR
meta/classes-recipe/rootfs_ipk.bbclass
30:OPKGLIBDIR ??= "${localstatedir}/lib"
meta/recipes-devtools/opkg/opkg_0.6.1.bb
32:OPKGLIBDIR ??= "${target_localstatedir}/lib"
meta/classes-global/package_ipk.bbclass
24:OPKGLIBDIR ??= "${localstatedir}/lib"

However, based on your reply, I am starting to wonder whether what I am trying 
to achieve is at all possible. The mount '/data-os' is a dedicated partition 
mounted R/W and used by overlayfs-etc, my assumption was to configure opkg to 
use this for the meta-data. But if the meta-data is rendered build-time during 
rootfs creation, I do not see how this is achievable?

Thanks,
Martin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63858): 
https://urldefense.com/v3/__https://lists.yoctoproject.org/g/yocto/message/63858__;!!OkyjEqkqqe9UhNQ!xaN31BlkIMYtsVPvKIVGPH0bIS1X45V8P3AS3cvykPFnNeAPXjUJjGlQbLjDmMn7FkXlQwsJMHlIdQw$
 
Mute This Topic: 
https://urldefense.com/v3/__https://lists.yoctoproject.org/mt/108478012/3616788__;!!OkyjEqkqqe9UhNQ!xaN31BlkIMYtsVPvKIVGPH0bIS1X45V8P3AS3cvykPFnNeAPXjUJjGlQbLjDmMn7FkXlQwsJaNEQ6Hg$
 
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://urldefense.com/v3/__https://lists.yoctoproject.org/g/yocto/unsub__;!!OkyjEqkqqe9UhNQ!xaN31BlkIMYtsVPvKIVGPH0bIS1X45V8P3AS3cvykPFnNeAPXjUJjGlQbLjDmMn7FkXlQwsJMLshdPs$
  [alex.stew...@emerson.com]
-=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#63859): https://lists.yoctoproject.org/g/yocto/message/63859
Mute This Topic: https://lists.yoctoproject.org/mt/108478012/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to