<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 5 August 2016 at 16:14, Robert P. J. Day <span dir="ltr">&lt;<a href="mailto:rpjday@crashcourse.ca" target="_blank">rpjday@crashcourse.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2xg" class="a3s aXjCH m1565b45a18e72eb5">  i have a systemd-based image that, after coming up normally, i want<br>
to fire off a one-time script which, after completion, reboots. i&#39;ve<br>
been told that using systemd&#39;s run-postinsts is discouraged and, for<br>
now, i just want the simplest and quickest solution.</div></blockquote></div><br>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.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>