From: Tobias Brunner Date: Fri, 18 Dec 2020 13:18:47 +0000 (+0100) Subject: testing: Copy /etc/resolv.conf from host in chroot script X-Git-Tag: 5.9.2dr2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc25d2195aa2c9c9434830d2d8adbbff1fae0efb;p=thirdparty%2Fstrongswan.git testing: Copy /etc/resolv.conf from host in chroot script This makes installing packages etc. easier. --- diff --git a/testing/scripts/chroot b/testing/scripts/chroot index 4f42455157..665a6bae2e 100755 --- a/testing/scripts/chroot +++ b/testing/scripts/chroot @@ -57,6 +57,10 @@ log_action "Mounting $SHAREDDIR as /root/shared" execute "mount -o bind $SHAREDDIR $LOOPDIR/root/shared" do_on_exit umount $LOOPDIR/root/shared +log_action "Copy /etc/resolv.conf" +execute "cp /etc/resolv.conf $LOOPDIR/etc/resolv.conf" +do_on_exit rm $LOOPDIR/etc/resolv.conf + if [ -n "$affected" ]; then echo echo "Rebuild the $affected images after making changes to this image!"