Feature request: Option to resume/re-run snapins interrupted by an installer-initiated reboot (behavior changed since 1.6)
-
Hi everyone,
we use FOG to fully automate the installation of our PCs at the university, including several snapins for larger software packages. Some of these installers require a reboot in the middle of the installation and trigger that reboot themselves.
Behavior up to FOG 1.5.10:
When an installer rebooted the machine during the snapin run, the snapin task stayed open. After the reboot, the FOG client checked in again, received the same snapin task and the installation continued. This worked reliably for us and was an important part of our deployment workflow.Behavior since FOG 1.6:
After the installer-initiated reboot, the snapin is no longer delivered again. The installation is left incomplete and has to be finished manually.I understand that the recommended approach is to suppress the installer’s reboot and use the “Reboot after install” option instead, and that the old behavior was probably more of a side effect than an intended feature. However, for complex installers with multiple stages this means splitting them into several snapins or writing wrapper scripts for each package, which is a lot of extra work and maintenance.
Feature request:
It would be very helpful to have a per-snapin option like “Resume after reboot” (or “Re-run if interrupted by a reboot”). If enabled, a snapin task that was started but never reported completion before the client rebooted would be delivered again on the next check-in. To prevent endless reboot loops, a configurable maximum number of retries (e.g. 3) would make sense, after which the task is marked as failed.Optionally, the client could also treat the common “reboot required” exit codes (3010 / 1641) as “success, reboot needed” and handle the reboot itself.
Environment:
FOG server version: 1.6.0.158
FOG agent version: 0.1.2X
Server OS: Ubuntu 24.04 LTS
Client OS: Windows 11
Example snapins affected: Siemens TIA PortalFinally, I’d like to say a big thank you to the whole FOG team. FOG has been a core part of our deployment workflow for years, and it’s impressive how much you’ve built and maintained as an open-source project, along with the support you provide here in the forum. Your work saves us countless hours every week, and we really appreciate it!
-
@lf88 Thanks for the detailed report. On 1.6 the server still sends an interrupted snapin again, but the new agent can report the installer’s exit before Windows stops the agent, and that report closes the task. We are confirming this in the lab and will fix it in the agent, with a retry limit so a looping installer ends as failed. To help confirm: on the host’s snapin task, what exit code and status does the UI show for the TIA Portal run? The agent log line starting snapin “<name>” (task N): shows the same thing. Also, 3010 and 1641 are already treated as “success, reboot needed” by default, and the agent then reboots the machine.
-
@lf88 Update: in our lab, an installer that reboots the machine mid-run did get its snapin run again after the reboot, so the cause I described is not confirmed. The exit code you see on the TIA Portal snapin task is now the key piece. If the installer exits with a code before the reboot, the agent reports it and the task closes. Please also post the agent log lines around the reboot (C:\ProgramData\FOG\ log, lines starting snapin " and snapin result:).