opkg: ignore result of opkg configure
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
@@ -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
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