]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
utils/genrandconfig: use --no-check-certificate in wget by default
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Sep 2017 21:29:38 +0000 (23:29 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 31 Mar 2018 15:17:51 +0000 (17:17 +0200)
A number of autobuilder failures are due to the fact that autobuilder
instances use old distributions, with old SSL certificates, and
therefore wget aborts with an error "The certificate of `xyz.org' is
not trusted.".

In order to avoid such failures that are not very interesting in the
context of the autobuilders, we pass --no-check-certificate to
wget. The integrity of the downloaded files is anyway verified by the
hashes, and this is only meant to be used in the context of
testing/CI, not in production.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
utils/genrandconfig

index 07882200e075a1e6c106f97cd3a6ba2ad1538235..06701ce565bf629549c42e7c88cd9bb02bec82e5 100755 (executable)
@@ -349,6 +349,9 @@ def gen_config(args):
     with open(minimalconfigfile) as minimalf:
         configlines += minimalf.readlines()
 
+    # Allow hosts with old certificates to download over https
+    configlines.append("BR2_WGET=\"wget --passive-ftp -nd -t 3 --no-check-certificate\"")
+
     # Amend the configuration with a few things.
     if randint(0, 20) == 0:
         configlines.append("BR2_ENABLE_DEBUG=y\n")