From f7ac65d715c280e0324559f74c207d7d85f7b591 Mon Sep 17 00:00:00 2001 From: Dante Catalfamo <43040593+dantecatalfamo@users.noreply.github.com> Date: Wed, 8 Jan 2025 10:28:28 -0500 Subject: [PATCH] Revert "Add SystemDrive env var to osqueryd if present in orbit" (#25239) Reverts fleetdm/fleet#2520 Was asked to revert this PR so we can include it in the next release instead --- orbit/changes/8986-systemdrive-env-passthrough | 1 - orbit/cmd/orbit/orbit.go | 6 ------ 2 files changed, 7 deletions(-) delete mode 100644 orbit/changes/8986-systemdrive-env-passthrough diff --git a/orbit/changes/8986-systemdrive-env-passthrough b/orbit/changes/8986-systemdrive-env-passthrough deleted file mode 100644 index 472460428128..000000000000 --- a/orbit/changes/8986-systemdrive-env-passthrough +++ /dev/null @@ -1 +0,0 @@ -- Pass `SystemDrive` Environemt variable to osqueryd when present in Orbit diff --git a/orbit/cmd/orbit/orbit.go b/orbit/cmd/orbit/orbit.go index c7d41f11acb7..2cf8138045fd 100644 --- a/orbit/cmd/orbit/orbit.go +++ b/orbit/cmd/orbit/orbit.go @@ -771,12 +771,6 @@ func main() { ) } - if runtime.GOOS == "windows" { - if systemDrive, ok := os.LookupEnv("SystemDrive"); ok { - options = append(options, osquery.WithEnv([]string{fmt.Sprintf("SystemDrive=%s", systemDrive)})) - } - } - var certPath string if fleetURL != "https://" && c.Bool("insecure") { proxy, err := insecure.NewTLSProxy(fleetURL)