[oe-commits] Muhammad Shakeel : opkg: ignore result of opkg configure

git at git.openembedded.org git at git.openembedded.org
Thu Oct 3 09:10:35 UTC 2013

Module: openembedded-core.git
Branch: master-next
Commit: 6d675e405bcbc74dead6686e9f8c02ba3d808f1f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6d675e405bcbc74dead6686e9f8c02ba3d808f1f

Author: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Date:   Wed Oct  2 15:07:12 2013 +0000

opkg: ignore result of opkg configure

Some packages may return error while running opkg-cl configure, during
first boot. This will fail 'ExecStart' and 'ExecStartPost' will not run.
Without 'ExecStartPost' opkg-configure service will continue to run on
successive boot attempts. 'ExecStartPost' should disable this service
after first boot irrespective of 'ExecStart' status.

Signed-off-by: Muhammad Shakeel <muhammad_shakeel at mentor.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>


 .../opkg/opkg/opkg-configure.service               |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-devtools/opkg/opkg/opkg-configure.service b/meta/recipes-devtools/opkg/opkg/opkg-configure.service
index a1c3a31..b18295b 100644
--- a/meta/recipes-devtools/opkg/opkg/opkg-configure.service
+++ b/meta/recipes-devtools/opkg/opkg/opkg-configure.service
@@ -7,7 +7,7 @@ Before=sysinit.target
 EnvironmentFile=- at SYSCONFDIR@/default/postinst
-ExecStart=@BASE_BINDIR@/sh -c " if [ $POSTINST_LOGGING = '1' ]; then @BINDIR@/opkg-cl configure > $LOGFILE 2>&1; else @BINDIR@/opkg-cl configure; fi"
+ExecStart=- at BASE_BINDIR@/sh -c " if [ $POSTINST_LOGGING = '1' ]; then @BINDIR@/opkg-cl configure > $LOGFILE 2>&1; else @BINDIR@/opkg-cl configure; fi"
 ExecStartPost=@BASE_BINDIR@/systemctl disable opkg-configure.service

More information about the Openembedded-commits mailing list