]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Add /etc/resolv.conf when building strongSwan
authorTobias Brunner <tobias@strongswan.org>
Wed, 27 Mar 2019 10:04:57 +0000 (11:04 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 4 Apr 2019 07:36:38 +0000 (09:36 +0200)
testing/scripts/build-strongswan

index 13fd1e6913e070dc51654485fe866439d4e20215..24e11bba20746bf7ebaf8263a5efecef4b6aad6a 100755 (executable)
@@ -59,6 +59,10 @@ log_action "Mounting $SWANDIR as /root/strongswan"
 execute "bindfs -u $SRCUID -g $SRCGID $SWANDIR $LOOPDIR/root/strongswan"
 do_on_exit umount $LOOPDIR/root/strongswan
 
+log_action "Copy /etc/resolv.conf"
+execute "cp /etc/resolv.conf $LOOPDIR/etc/resolv.conf"
+do_on_exit rm $LOOPDIR/etc/resolv.conf
+
 log_action "Remove SWID tags of previous versions"
 execute_chroot "find /usr/local/share -path '*strongswan*' -name *.swidtag -delete"