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. (From OE-Core rev: cd6041071ddf76693cda7632379ceddd1d21a7fb) Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
20a86e16bc
commit
2a013e290d
|
@ -7,7 +7,7 @@ Before=sysinit.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=-@SYSCONFDIR@/default/postinst
|
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
|
ExecStartPost=@BASE_BINDIR@/systemctl disable opkg-configure.service
|
||||||
StandardOutput=syslog
|
StandardOutput=syslog
|
||||||
RemainAfterExit=No
|
RemainAfterExit=No
|
||||||
|
|
Loading…
Reference in New Issue