<div dir="ltr"><div class="gmail_extra">On 12 February 2016 at 18:55, Saul Wold <span dir="ltr">&lt;<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1ad" class="a3s" style="overflow:hidden">+# As the recipe doesn&#39;t inherit systemd.bbclass, we need to set this variable<br>
+# manually to avoid unnecessary postinst/preinst generated.<br>
+python () {<br>
+    if not bb.utils.contains(&#39;DISTRO_FEATURES&#39;, &#39;sysvinit&#39;, True, False, d):<br>
+        d.setVar(&quot;INHIBIT_UPDATERCD_BBCLASS&quot;, &quot;1&quot;)<br>
+}</div></blockquote></div><br>Can&#39;t help but think that stealing a unit from Fedora would clean this and the do_install_append logic up (conditionals are not required if systemd is inherited as it removes those for you).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>