problem executing postupdate command script with general purpose http server

9 views
Skip to first unread message

Freezz6

unread,
Aug 11, 2025, 4:46:21 PMAug 11
to swupdate
Running swupdate tagged 2024.05.2.

I have been experimenting with using the general purpose http server with the provided example script.  With this configuration I launch swupdate from the command line as follows...
sudo swupdate -u '-u http://192.168.10.109:8080' ${selection} -H sm2s-imx8mp-toro:Nova-PVT -k /etc/swu_public.pem

The file is found and served to the swupdate client.  SWupdate installs the file and reports the following...

[TRACE] : SWUPDATE running :  [network_initializer] : Valid image found: copying to FLASH
[INFO ] : SWUPDATE running :  Installation in progress
[TRACE] : SWUPDATE running :  [install_single_image] : Found installer for stream nova-acs-sm2s-imx8mp-toro.ext4.gz raw
[INFO ] : SWUPDATE successful ! SWUPDATE successful !
[TRACE] : SWUPDATE running :  [network_initializer] : Main thread sleep again !
[INFO ] : No SWUPDATE running :  Waiting for requests...
[DEBUG] : SWUPDATE running :  [suricatta_wait] : Sleeping for 30 seconds.
[TRACE] : SWUPDATE running :  [start_suricatta] : Suricatta awakened.
[TRACE] : SWUPDATE running :  [do_get_state] : Read state=1 from persistent storage.
[WARN ] : SWUPDATE running :  [server_has_pending_action] : An already installed update is pending testing.
[DEBUG] : SWUPDATE running :  [start_suricatta] : No pending action to process.
[DEBUG] : SWUPDATE running :  [suricatta_wait] : Sleeping for 30 seconds.

At this point swupdate is in a wake/sleep loop and does nothing.  With all the other modes I have tested (mongoose, file server, etc), the postupdate command script is run (which in my case is to issue a reboot).  Why is the post update command not being run?

Any help would be appreciated.

Regards
Rich


Freezz6

unread,
Aug 11, 2025, 6:28:43 PMAug 11
to swupdate
I found this post that appears to fix the issue...I changed my version to the 2025.05 tagged version.
Reply all
Reply to author
Forward
0 new messages