Problem with lua script always failing

18 views
Skip to first unread message

Torstein

unread,
Sep 11, 2025, 5:12:07 AMSep 11
to swupdate

Hi

I have some problems with lua script always failing.

I can see that it calls the functions but even when the function return 0 it fails.

I don't know what this error mean or how to fix it: ERROR installer.c : install_images : 377 : execute preinstall scripts failed 

Attached is a simple project to test this, and the log I get from the web client.


I use kirkstone branch in the meta-swupdate layer to build it in yocto and the version is SWUpdate v2025.05.0-


Torstein Habbestad

lua_test.zip

T

unread,
Sep 15, 2025, 6:01:33 AMSep 15
to swupdate
The problem was that I used return 0 to indicate success instead of return true

Torstein

--
You received this message because you are subscribed to the Google Groups "swupdate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swupdate+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/swupdate/2d540f0d-85ea-4fce-bea3-a8d3fd785483n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages