<div dir="ltr"><div class="gmail_extra">On 12 February 2016 at 18:55, Saul Wold <span dir="ltr"><<a href="mailto:sgw@linux.intel.com" target="_blank">sgw@linux.intel.com</a>></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'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('DISTRO_FEATURES', 'sysvinit', True, False, d):<br>
+ d.setVar("INHIBIT_UPDATERCD_BBCLASS", "1")<br>
+}</div></blockquote></div><br>Can'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>