[LEDE-DEV] [PATCH] scripts/download.pl: Use CDN for kernel downloads

Arjen de Korte arjen+lede at de-korte.org
Mon May 23 02:51:39 PDT 2016


Citeren Felix Fietkau <nbd at nbd.name>:

> On 2016-05-23 10:29, Bjørn Mork wrote:
>> Petr Štetiar <ynezz at true.cz> writes:
>>
>>> More info at https://www.kernel.org/introducing-fastly-cdn.html
>>>
>>> Signed-off-by: Petr Štetiar <ynezz at true.cz>
>>> ---
>>>  scripts/download.pl | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/scripts/download.pl b/scripts/download.pl
>>> index 548eb7a..ec7067b 100755
>>> --- a/scripts/download.pl
>>> +++ b/scripts/download.pl
>>> @@ -207,7 +207,7 @@ foreach my $mirror (@ARGV) {
>>>  			push @extra, "$extra[0]/longterm/v$1";
>>>  		}
>>>  		foreach my $dir (@extra) {
>>> -			push @mirrors, "https://kernel.org/pub/$dir";
>>> +			push @mirrors, "https://cdn.kernel.org/pub/$dir";
>>>  			push @mirrors, "ftp://kernel.org/pub/$dir";
>>>  		}
>>>      } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
>>
>> Not sure that is a good idea at this point.  At least here, kernel.org
>> has IPv6 AAAA records while cdn.kernel.org does not:
> So why not add both? :)

+1

I'd prefer a geographically close IPv4 only server over one that is  
also reachable over IPv6.

And while add it, maybe change 'kernel.org' to 'www.kernel.org'.  
Although they seem to resolve to the same IPv4/IPv6 addresses, the  
latter is whats mentioned in the Fastly introduction message if one  
specifically does NOT want to use the CDN.




More information about the Lede-dev mailing list