From 8e67a308ed7ee62b57c519cab48ddc5bff4b9c0d Mon Sep 17 00:00:00 2001 From: Huamin Chen Date: Tue, 14 Jun 2016 17:54:59 +0000 Subject: [PATCH] in nsenter mounter, read hosts PID 1 /proc/mounts to list the mounts Signed-off-by: Huamin Chen --- pkg/util/mount/nsenter_mount.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/mount/nsenter_mount.go b/pkg/util/mount/nsenter_mount.go index 9be0e551d35..8f4e4d24b51 100644 --- a/pkg/util/mount/nsenter_mount.go +++ b/pkg/util/mount/nsenter_mount.go @@ -88,7 +88,7 @@ var _ = Interface(&NsenterMounter{}) const ( hostRootFsPath = "/rootfs" - hostProcMountsPath = "/rootfs/proc/mounts" + hostProcMountsPath = "/rootfs/proc/1/mounts" nsenterPath = "nsenter" )