forked from bottlerocket-os/bottlerocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0005-bottlerocket-fix-procfs-path-on-host.patch
31 lines (27 loc) · 1.17 KB
/
0005-bottlerocket-fix-procfs-path-on-host.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From a07bc91f65387a0c4472796a9c673e52596a601f Mon Sep 17 00:00:00 2001
From: Samuel Karp <skarp@amazon.com>
Date: Fri, 26 Mar 2021 17:48:28 -0700
Subject: [PATCH 5/5] bottlerocket: fix procfs path on host
Bottlerocket runs the ECS agent directly on the host rather than in a
container. In other environments, the ECS agent runs in a container
with `/host` mounted as the host's root filesystem and can read the
host's `procfs` at `/host/proc`. Because Bottlerocket does not run the
ECS agent in a container, the ECS agent can directly read the host's
`procfs` at `/proc`.
---
agent/ecscni/types_linux.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agent/ecscni/types_linux.go b/agent/ecscni/types_linux.go
index 06a134f4..3705ad24 100644
--- a/agent/ecscni/types_linux.go
+++ b/agent/ecscni/types_linux.go
@@ -39,7 +39,7 @@ const (
// ECSBranchENIPluginName is the binary of the branch-eni plugin
ECSBranchENIPluginName = "vpc-branch-eni"
// NetnsFormat is used to construct the path to cotainer network namespace
- NetnsFormat = "/host/proc/%s/ns/net"
+ NetnsFormat = "/proc/%s/ns/net"
)
//IPAMNetworkConfig is the config format accepted by the plugin
--
2.32.0