From 6a207c33fa1ed4e642e621e0251f12da621e1a2e Mon Sep 17 00:00:00 2001 From: henrygd Date: Sun, 29 Mar 2026 12:33:45 -0400 Subject: [PATCH] agent: change `disk.Partitions(false)` to `true` - likely fixes empty partition list in docker as of gopsutil 4.26.2 --- agent/disk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/disk.go b/agent/disk.go index 32ffbdf8..d18ed39c 100644 --- a/agent/disk.go +++ b/agent/disk.go @@ -1,6 +1,7 @@ package agent import ( + "context" "log/slog" "os" "path/filepath" @@ -273,7 +274,7 @@ func (a *Agent) initializeDiskInfo() { hasRoot := false isWindows := runtime.GOOS == "windows" - partitions, err := disk.Partitions(false) + partitions, err := disk.PartitionsWithContext(context.Background(), true) if err != nil { slog.Error("Error getting disk partitions", "err", err) }