From 888a81d7049012e156725d5efeda4e0331eb0211 Mon Sep 17 00:00:00 2001 From: Christoph Ostarek Date: Fri, 17 May 2024 17:30:55 +0200 Subject: [PATCH] zedmanager: report HALTING state correctly when doing a purge; otherwise HALTED state would be reported directly Signed-off-by: Christoph Ostarek --- pkg/pillar/cmd/zedmanager/updatestatus.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/pillar/cmd/zedmanager/updatestatus.go b/pkg/pillar/cmd/zedmanager/updatestatus.go index 636c7c191d5..47bd347a850 100644 --- a/pkg/pillar/cmd/zedmanager/updatestatus.go +++ b/pkg/pillar/cmd/zedmanager/updatestatus.go @@ -171,6 +171,7 @@ func doUpdate(ctx *zedmanagerContext, log.Functionf("PurgeInprogress(%s) volumemgr done", status.Key()) status.PurgeInprogress = types.BringDown + status.State = types.HALTING changed = true // Keep the old volumes in place _, done := doRemove(ctx, status, false)