From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7278939938131804160 X-Received: by 2002:a2e:8317:0:b0:2b6:c886:681 with SMTP id a23-20020a2e8317000000b002b6c8860681mr9717134ljh.6.1695105094866; Mon, 18 Sep 2023 23:31:34 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:a10:b0:2bc:da88:b686 with SMTP id k16-20020a05651c0a1000b002bcda88b686ls10267ljq.0.-pod-prod-01-eu; Mon, 18 Sep 2023 23:31:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6XuA6ALqgdzdpq8MR5GWENQSHmB9Sm/pRaAlbi61kiRw2lyj2Uv48OQmVrRg+2Ifdv6IH X-Received: by 2002:a05:6512:3709:b0:502:f2a8:d389 with SMTP id z9-20020a056512370900b00502f2a8d389mr8555236lfr.19.1695105092747; Mon, 18 Sep 2023 23:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695105092; cv=none; d=google.com; s=arc-20160816; b=mwp52NHjCmQ+pq12HOhaozQYBUQCvDPh5GN7in8PP6qHgQM3tuL+bd9r0lZdmwodsN 6J5aC6TNidtPiOXGlxGOLgBu7RFVq4Uk6R+wgweINblY9bzXTIge9x2CP5DaizT3F+SE 8HD6BMkSoddzcZvndoVmDxzh6WMZOo/hJjZ+iTaKfDp0AjK5OGvg5kVkLFA+mDYqEAD8 x7n4PXAYwoI//5kSNx1qPxfRFL9O+fTzGGl75XMCHo97eT+CEzP2/cy97L03umnX9Tw7 Ghds0WRJXV5RDB9bkNNHIdOg4dmdLpONyl6gFDdXjUq26euF+ve3iQspu86ikaH9F8j6 SySw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id; bh=A9luqGw3zPAj7/aNJwuJbEMetRfhX9nv8fF1QAT4W2c=; fh=O+ZMFUiiuyZKsfz7Fw8hsdknZlxcSFSsLsCydBEGD0o=; b=Rh38vzLvFB+vVG31yyZjmp4Z/c0eIRzKWtadambnQRfNqIBYTlYz10FicB800CEG9Z q23E7QTqfYB/Jvb6AtaTb28xWAac7SAp+36jcdHQK9UARjHwwicUsu74uwCeuEOsYRhc JsYZ49RtdouCauC1lglrFUBPIWgtpj7OgrzjzehpKAL2R+AlbU1YAhZGGNuhxCjuNUdR UElpsFOGcJ+qoLhmZDocKjiAiucKRW72hSecg1QS3PwkQjVpk5YCSxnA8vKO4FIVmmet LLAO58Nm+Fjvb2TLoTH8dGNlDWHfFMj4hdw5ACzpldfPZnfuXIORuWk21LP7nxo3bEmU oMBA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id s4-20020a056512202400b00502d58d12bdsi828146lfs.3.2023.09.18.23.31.32 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Sep 2023 23:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 38J6VUVX014070 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Sep 2023 08:31:31 +0200 Message-ID: <27790107631e4a94d8ed8f865cd3763ff6e17820.camel@ilbers.de> Subject: Re: [PATCH 04/13] kas: Add mirror selection From: Uladzimir Bely To: Jan Kiszka , isar-users@googlegroups.com Date: Tue, 19 Sep 2023 09:31:32 +0300 In-Reply-To: <2bb318db-2bf1-4692-adba-662270817390@siemens.com> References: <20230915064426.27676-1-ubely@ilbers.de> <20230915064426.27676-5-ubely@ilbers.de> <2bb318db-2bf1-4692-adba-662270817390@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (by Flathub.org) MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: V4S/zcC4X++O On Sat, 2023-09-16 at 15:04 +0530, Jan Kiszka wrote: > On 15.09.23 12:14, Uladzimir Bely wrote: > > This allows to select better (faster) mirror for Debian and Ubuntu > > distributions. > >=20 > > Isar DISTRO_APT_PREMIRRORS is used under the hood. > >=20 > > Signed-off-by: Uladzimir Bely > > --- > > =C2=A0Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0 1 + > > =C2=A0kas/opt/Kconfig=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 | 34 ++++++++++++++++++++++++++++++++++ > > =C2=A0kas/opt/mirror-debian.yml |=C2=A0 7 +++++++ > > =C2=A0kas/opt/mirror-ubuntu.yml |=C2=A0 7 +++++++ > > =C2=A04 files changed, 49 insertions(+) > > =C2=A0create mode 100644 kas/opt/Kconfig > > =C2=A0create mode 100644 kas/opt/mirror-debian.yml > > =C2=A0create mode 100644 kas/opt/mirror-ubuntu.yml > >=20 > > diff --git a/Kconfig b/Kconfig > > index ac77fb81..4c2e2339 100644 > > --- a/Kconfig > > +++ b/Kconfig > > @@ -10,3 +10,4 @@ config KAS_BUILD_SYSTEM > > =C2=A0 > > =C2=A0source "kas/machine/Kconfig" > > =C2=A0source "kas/distro/Kconfig" > > +source "kas/opt/Kconfig" > > diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig > > new file mode 100644 > > index 00000000..c6e60583 > > --- /dev/null > > +++ b/kas/opt/Kconfig > > @@ -0,0 +1,34 @@ > > +menu "Mirror selection" > > + > > +config MIRROR_DEBIAN > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bool "Use specific Debian mi= rror" >=20 > depends on DEBIAN_BOOKWORM || ... >=20 Will add in v2. > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0help > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Select better local D= ebian mirror instead of > > deb.debian.org > > + > > +config MIRROR_DEBIAN_URL > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string "URL of Debian mirror= " > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "http://deb.debian.o= rg" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_DEBIAN > > + > > +config KAS_INCLUDE_MIRROR_DEBIAN > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "kas/opt/mirror-debi= an.yml" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_DEBIAN > > + > > + > > +config MIRROR_UBUNTU > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0bool "Use specific Ubuntu mi= rror" >=20 > depens on UBUNTU_FOCAL || ... >=20 Will add in v2. > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0help > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Select better local U= buntu mirror instead of > > archive.ubuntu.com > > + > > +config MIRROR_UBUNTU_URL > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string "URL of Ubuntu mirror= " > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "http://archive.ubun= tu.com" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_UBUNTU > > + > > +config KAS_INCLUDE_MIRROR_UBUNTU > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0string > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0default "kas/opt/mirror-ubun= tu.yml" > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0depends on MIRROR_UBUNTU > > + > > +endmenu > > diff --git a/kas/opt/mirror-debian.yml b/kas/opt/mirror-debian.yml > > new file mode 100644 > > index 00000000..ad708f2e > > --- /dev/null > > +++ b/kas/opt/mirror-debian.yml > > @@ -0,0 +1,7 @@ > > +header: > > +=C2=A0 version: 14 > > + > > +local_conf_header: > > +=C2=A0 mirror-debian: | > > +=C2=A0=C2=A0=C2=A0 DISTRO_APT_PREMIRRORS +=3D "\ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 http://deb\.debian\.org=C2=A0${MIRROR_D= EBIAN_URL}\n" > > diff --git a/kas/opt/mirror-ubuntu.yml b/kas/opt/mirror-ubuntu.yml > > new file mode 100644 > > index 00000000..beb73d59 > > --- /dev/null > > +++ b/kas/opt/mirror-ubuntu.yml > > @@ -0,0 +1,7 @@ > > +header: > > +=C2=A0 version: 14 > > + > > +local_conf_header: > > +=C2=A0 mirror-ubuntu: | > > +=C2=A0=C2=A0=C2=A0 DISTRO_APT_PREMIRRORS +=3D "\ > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 http://archive\.ubuntu\.com=C2=A0${MIRR= OR_UBUNTU_URL}\n" >=20 > Jan >=20