From 923618c1ac23b0d2a482816e9f7736e5be002255 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Thu, 10 Mar 2016 15:05:49 -0800 Subject: [PATCH] executor: add /run/resolvconf to chroot --- client/driver/executor/executor_linux.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/client/driver/executor/executor_linux.go b/client/driver/executor/executor_linux.go index 1b142c33f77..da3a89a3f89 100644 --- a/client/driver/executor/executor_linux.go +++ b/client/driver/executor/executor_linux.go @@ -22,16 +22,17 @@ var ( // A mapping of directories on the host OS to attempt to embed inside each // task's chroot. chrootEnv = map[string]string{ - "/bin": "/bin", - "/etc": "/etc", - "/lib": "/lib", - "/lib32": "/lib32", - "/lib64": "/lib64", - "/sbin": "/sbin", - "/usr/bin": "/usr/bin", - "/usr/sbin": "/usr/sbin", - "/usr/lib": "/usr/lib", - "/usr/share": "/usr/share", + "/bin": "/bin", + "/etc": "/etc", + "/lib": "/lib", + "/lib32": "/lib32", + "/lib64": "/lib64", + "/sbin": "/sbin", + "/usr/bin": "/usr/bin", + "/usr/sbin": "/usr/sbin", + "/usr/lib": "/usr/lib", + "/usr/share": "/usr/share", + "/run/resolvconf": "/run/resolvconf", } )