<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 6, 2014 at 1:08 PM, Neuer User <span dir="ltr"><<a href="mailto:auslands-kv@gmx.de" target="_blank">auslands-kv@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am 06.06.2014 12:54, schrieb Paul Barker:<br>
<div class="">> I usually leave things more than a day before sending a ping email,<br>
> people can be busy but usually you'll get replies within a couple of<br>
> days on this list.<br>
><br>
<br>
</div>Sorry, I guess these 18h were driving me crazy as I don't understand why<br>
it is not working. I actually thought, it had already been working<br>
earlier...<br>
<div class=""><br>
>>><br>
>>> # Overwrite some configuration data with specific files<br>
>>> pkg_postinst_${PN} () {<br>
>>> Â Â install -o root -g root -m 0600 ${S}/ssh/sshd_config ${D}/etc/ssh/<br>
>>> Â Â install -m 0755 ${S}/etc/rc.local ${D}/etc/<br>
>>> Â Â install -m 0644 ${S}/etc/watchdog.conf ${D}/etc/<br>
>>> Â Â install -m 0400 ${S}/etc/shadow ${D}/etc/<br>
>>> Â Â install -m 0440 ${S}/etc/sudoers ${D}/etc/<br>
>>> Â Â install -d ${D}/etc/default<br>
>>> Â Â install -o root -g root -m 0644 ${S}/etc/default-ntpdate<br>
>>> ${D}/etc/default/ntpdate<br>
>>> }<br>
>>><br>
><br>
> The postinst is executed by the package manager when the package is<br>
> installed. If that installation takes place during do_rootfs, ${D}<br>
> will refer to the rootfs directory for the image being built and ${S}<br>
> will probably refer to something else to do with the image recipe but<br>
> I'm not entirely sure on the details. If the installation takes place<br>
> on the device, or the postinst is delayed until the first boot, ${D}<br>
> and ${S} will not be set.<br>
><br>
> Hope this helps,<br>
><br>
<br>
</div>So, I guess there are now two possibilities:<br>
a.) The postinstall is not done at all.<br>
b.) The postinstall is done, but before the other packages are<br>
installed, which overwrite the files again. Is this possible? If yes,<br>
howto specify that this postinstall should really be done last of all?<br>
<br></blockquote><div><br></div></div>I'm not sure if this helps, but you can specify rootfs-post-process commands in your image recipe:<br><br>setup_my_image() {<br>Â Â # do stuff<br>}<br><br>ROOTFS_POSTPROCESS_COMMAND += 'setup_my_image ;'<br>
<br></div><div class="gmail_extra">This will run after the rootfs is created from the package installations<br><br></div><div class="gmail_extra">/Jacob<br></div></div>