git://git.onelab.eu
/
sliceimage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3fbe3f7
)
expose /etc/resolv.conf to chroot before invoking pip or gem
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 17 Apr 2014 12:14:17 +0000
(14:14 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Thu, 17 Apr 2014 12:14:17 +0000
(14:14 +0200)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/build.sh
index
e383edf
..
53df754
100755
(executable)
--- 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.)