SynologyOpenSource / pkgscripts-ng

Synology DSM6.0 package toolkit framework
162 stars 56 forks source link

curl_exec() failed during code sign with -v 6.2 due to bad resolv.conf in the chroot environments #17

Closed davidcava closed 2 years ago

davidcava commented 5 years ago

Last stage (code sign) fails because the chroot environments in 6.2 cannot access Internet due to bad /etc/resolv.conf files containing what looks like local DNS configuration for Synology company intranet:

nameserver 192.168.252.35
nameserver 192.168.253.253
search synology.com synology.io

Replacing those /etc/resolv.conf with 6.1 chroot version or the host /etc/resolv.conf solves the issue: /bin/ls -bd /toolkit/build_env/ds.*-6.2/etc | xargs -n 1 cp /etc/resolv.conf