From: Zhang Qiang Date: Fri, 13 Jul 2012 08:27:53 +0000 (+0800) Subject: set up resolv.conf for buildroot network X-Git-Tag: 0.8~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ce3e8d86788aef062d109716b49ea45f7334d59;p=tools%2Fgbs.git set up resolv.conf for buildroot network --- diff --git a/gitbuildsys/cmd_chroot.py b/gitbuildsys/cmd_chroot.py index 40933a2..a7f6211 100644 --- a/gitbuildsys/cmd_chroot.py +++ b/gitbuildsys/cmd_chroot.py @@ -44,6 +44,12 @@ def do(opts, args): user = 'root' cmd = ['sudo', 'chroot', build_root, 'su', user] try: + subprocess.call(['sudo', 'cp', '/etc/resolv.conf', build_root + \ + '/etc/resolv.conf']) + except: + msger.warning('failed to setup /etc/resolv.conf') + + try: build_env = os.environ build_env['PS1']="(tizen-build-env)@\h \W]\$ " subprocess.call(cmd, env=build_env)