Skip to contentSkip to conversation

opkg: ignore result of opkg configure

PATCH In review Shakeel, Muhammad 2 participants 2 messages Oct 2, 2013 – Oct 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opkg: ignore result of opkg configure

From: Muhammad Shakeel <[email protected]>

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.

---
 .../opkg/opkg/opkg-configure.service               |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/opkg/opkg/opkg-configure.service +1 -1
index a1c3a31..b18295b 100644
@@ -7,7 +7,7 @@ Before=sysinit.target
 [Service]
 Type=oneshot
 EnvironmentFile=-@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=-@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
 StandardOutput=syslog
 RemainAfterExit=No
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 7 lines · Muhammad

From: Muhammad Shakeel <[email protected]>

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.

Isn't there an argument that the current behaviour is right? Whilst there's still outstanding postinstalls to run, continue attempting to run them. At some point they'll hopefully succeed - the original failure may have been an ordering problem.

Ross