[OE-core] where is the safest place to put a single-shot "run and reboot" script?

Burton, Ross ross.burton at intel.com
Fri Aug 5 15:21:01 UTC 2016


On 5 August 2016 at 16:14, Robert P. J. Day <rpjday at crashcourse.ca> wrote:

>   i have a systemd-based image that, after coming up normally, i want
> to fire off a one-time script which, after completion, reboots. i've
> been told that using systemd's run-postinsts is discouraged and, for
> now, i just want the simplest and quickest solution.
>

Write a recipe with a postinst that defers (exit 1 if $D is set at the
beginning).  This will be ran on boot until it succeeds, and then deleted.

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160805/87bb4964/attachment-0002.html>


More information about the Openembedded-core mailing list