<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi everyone !<br><br>I've been investigating on an issue when building an image, and I gave up doing what I first wanted.<br>I'd like to know more about the issue, and possibly suggest an improvement to bitbake...<br><br>The issue is related to "embedded python methods" in recipes.<br><br>In my image recipe, I'm modifying the rootfs (basically to add a hashed password to /etc/shadow), with something like :<br><br>python set_password() {<br><span style="white-space:pre">        </span><some piece of python script here><br>}<br><br>The thing is, this piece of code is executed by the *host* interpreter, so it depends on the dev machine (in my case I ran into an issue with crypt.mksalt() not being available).<br>It would be nice to allow executing this with the *native* interpreter, the one built during the whole image build process.<br><br>I tried inheriting pythonnative, which sets the PYTHON variable the correct way, but it's not used for those methods...<br>I guess it's not easy, since it would need to pass the datastore, but I wonder if there's any smart solution to this ?<br><br>Thanks for your help !<br><br><br>Remi<br><br></div></body></html>