From 1e2c85f53fded194c2b4bf59e2acd6b9e87a196f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 17 Apr 2014 14:14:17 +0200 Subject: [PATCH] expose /etc/resolv.conf to chroot before invoking pip or gem --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index e383edf..53df754 100755 --- a/build.sh +++ b/build.sh @@ -101,6 +101,11 @@ systemslice_count=$(ls ../build/config.${pldistro}/sliceimage-*.pkgs 2> /dev/nul echo " * WARNING image $systemslice - yum groupinstall $yum_group failed" done + # running pip or gem requires connectivity, and DNS + # so we expose the build-vm's /etc/resolv.conf to the current vdir + mkdir -p ${vdir}/etc + cp /etc/resolv.conf ${vdir}/etc + # this requires pip to be available in sliceimage at that point # fedora and debian -> python-pip # on fedora the command is called pip-python (sigh.) -- 2.43.0