in nsenter mounter, read hosts PID 1 /proc/mounts to list the mounts

Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
Huamin Chen 2016-06-14 17:54:59 +00:00
parent 9784dff94e
commit 8e67a308ed

View File

@ -88,7 +88,7 @@ var _ = Interface(&NsenterMounter{})
const (
hostRootFsPath = "/rootfs"
hostProcMountsPath = "/rootfs/proc/mounts"
hostProcMountsPath = "/rootfs/proc/1/mounts"
nsenterPath = "nsenter"
)