feat: updates.Apply with security scope, window deadline, busy guard and captured output

This commit is contained in:
2026-09-15 07:47:29 +00:00
parent 5f5e19e23e
commit 51b58fef21
5 changed files with 214 additions and 25 deletions
+1 -1
View File
@@ -482,7 +482,7 @@ func runInventory(ctx context.Context, cfg *config.Config) {
func handleApplyUpdates(cfg *config.Config, cmd *pb.ServerCommand) {
log.Printf("applying OS updates (cmd=%s)…", cmd.CommandId)
if err := updates.ApplyAll(); err != nil {
if _, err := updates.Apply(updates.ApplyOptions{}); err != nil {
log.Printf("OS upgrade failed (cmd=%s): %v", cmd.CommandId, err)
return
}