classes/update-rc.d.bbclass: move update-rc after postinst
authorEric Bénard <eric@eukrea.com>
Wed, 22 Sep 2010 12:27:16 +0000 (14:27 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Mon, 21 Mar 2011 16:06:40 +0000 (17:06 +0100)
without this, launching a daemon can fail if postinst is supposed, for
example, to fix permissions of directories used by the daemon.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Henning Heinold <heinold@inf.fu-berlin.de>
classes/update-rc.d.bbclass

index b6491ed..3a05abc 100644 (file)
@@ -60,11 +60,11 @@ python populate_packages_prepend () {
                bb.data.update_data(localdata)
 
                postinst = '#!/bin/sh\n'
-               postinst += bb.data.getVar('updatercd_postinst', localdata, 1)
                try:
                        postinst += bb.data.getVar('pkg_postinst', localdata, 1)
                except:
                        pass
+               postinst += bb.data.getVar('updatercd_postinst', localdata, 1)
                bb.data.setVar('pkg_postinst_%s' % pkg, postinst, d)
                prerm = bb.data.getVar('pkg_prerm', localdata, 1)
                if not prerm: