All checks were successful
release / build-and-release (push) Successful in 24s
xetup.exe now acts as an orchestrator across system reboots: - PS scripts exit 9 to signal "reboot needed, re-run me" (WU) or "done but reboot needed to finalize" (Dell BIOS) - On exit 9: xetup saves state.json, ensures adminx9 account, copies itself to stable path, enables autologon, registers X9-Resume scheduled task (AtLogOn adminx9, RunLevel Highest) - On resume: loads pending steps from state, continues seamlessly with "Pokracuji po restartu..." label in the run window - On completion: disables autologon, removes X9-Resume task, deletes state file, shows summary with accumulated results across all reboot rounds New packages: internal/state, internal/prereboot Script 12: simplified to exit 0 (done) or exit 9 (reboot needed) Script 11: exit 9 when DCU exit code 1 (BIOS staged, reboot needed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
632 B
Go
20 lines
632 B
Go
//go:build !windows
|
|
|
|
// Package prereboot ensures the reboot-resume infrastructure is in place
|
|
// before xetup triggers a system restart mid-deployment.
|
|
package prereboot
|
|
|
|
// StablePath is the platform stub for the stable binary path.
|
|
const StablePath = "/tmp/xetup-resume"
|
|
|
|
// TaskName is the scheduled task that re-launches xetup after each reboot.
|
|
const TaskName = "X9-Resume"
|
|
|
|
// IsAdminx9 always returns false on non-Windows platforms.
|
|
func IsAdminx9() bool { return false }
|
|
|
|
// Prepare is a no-op on non-Windows platforms.
|
|
func Prepare() error { return nil }
|
|
|
|
// Cleanup is a no-op on non-Windows platforms.
|
|
func Cleanup() {}
|