On 27/08/23 05:26, Crane wrote:
On Thu, Aug 24, 2023 at 04:21 AM, Mauro wrote:
To Crane: please try to build the image and test it, don't stop at
Yocto variables analysis step.
Thanks Mauro so much.
Indeed, it is not relevant the value of the variable, but where it is
assigned.
It doesn't work to assign these values in image recipe, but works in
local.conf.
extrausers class (and then EXTRA_USERS_PARAMS) works both in image
recipe and in local.conf, both with the openssl command and with the
ciphered password.
I am wondering what's the different in assigning the value in different
locations. Maybe it is relevant to the building sequence. If it is
assigned later, it is useless. Is there any rule to follow? Or it is
just from experience?
extrauser class is designed to add or modify users at image level, then
it must be used in image recipes or in a .conf file. [1]
useradd class is designed to create users at package level, then it must
be used in normal (not image) recipes only. [2]
[1] https://docs.yoctoproject.org/ref-manual/classes.html#extrausers
[2] https://docs.yoctoproject.org/ref-manual/classes.html#useradd
Another question I think of is how you guys source control local.conf.
It looks it might be much different from project to project.
Thanks!
Crane
--
Mauro Salvini | KOAN sas | Bergamo - Italia
embedded software engineering
✆:+39 351-9518710
http://KoanSoftware.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60911): https://lists.yoctoproject.org/g/yocto/message/60911
Mute This Topic: https://lists.yoctoproject.org/mt/100887124/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-