| Message ID | 20260727112812.2255297-10-akarpovich@ilbers.de |
|---|---|
| State | New |
| Headers | show |
| Series | Improving base-apt usage | expand |
On 27.07.26 13:26, Aliaksei Karpovich wrote: > From: Uladzimir Bely <ubely@ilbers.de> > > This option allows to set ISAR_PREFETCH_BASE_APT to "0" or "1" and > choose between old and new base-apt behaviour. > > Docker image kas uses should have "python3-apt" preinstalled > in order to have new functionality working. > ...which kas doesn't so far. Will you provide a patch for it? Until we have it, the new default will be broken with current kas, no? Should the default stay with the old model then, at least until there is a new kas version available, and Isar has also updated to it? Jan > Signed-off-by: Uladzimir Bely <ubely@ilbers.de> > --- > kas/opt/Kconfig | 12 ++++++++++++ > kas/opt/prefetch-base-apt.yaml | 9 +++++++++ > 2 files changed, 21 insertions(+) > create mode 100644 kas/opt/prefetch-base-apt.yaml > > diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig > index bc4ed997..cb3f0d0c 100644 > --- a/kas/opt/Kconfig > +++ b/kas/opt/Kconfig > @@ -213,3 +213,15 @@ config KAS_INCLUDE_USE_DRACUT > string > default "kas/opt/dracut.yaml" > depends on USE_DRACUT > + > +config PREFETCH_BASE_APT > + bool "Prefetch base-apt repo" > + default y > + help > + This makse Isar always take packages from base-apt repository where they > + are prefetched by debrepo script before requested. > + > +config KAS_INCLUDE_PREFETCH_BASE_APT > + string > + default "kas/opt/prefetch-base-apt.yaml" > + depends on PREFETCH_BASE_APT > diff --git a/kas/opt/prefetch-base-apt.yaml b/kas/opt/prefetch-base-apt.yaml > new file mode 100644 > index 00000000..0cbdb93f > --- /dev/null > +++ b/kas/opt/prefetch-base-apt.yaml > @@ -0,0 +1,9 @@ > +# This software is a part of Isar. > +# Copyright (C) 2024 ilbers GmbH > + > +header: > + version: 14 > + > +local_conf_header: > + prefetch-base-apt: | > + ISAR_PREFETCH_BASE_APT = "1"
diff --git a/kas/opt/Kconfig b/kas/opt/Kconfig index bc4ed997..cb3f0d0c 100644 --- a/kas/opt/Kconfig +++ b/kas/opt/Kconfig @@ -213,3 +213,15 @@ config KAS_INCLUDE_USE_DRACUT string default "kas/opt/dracut.yaml" depends on USE_DRACUT + +config PREFETCH_BASE_APT + bool "Prefetch base-apt repo" + default y + help + This makse Isar always take packages from base-apt repository where they + are prefetched by debrepo script before requested. + +config KAS_INCLUDE_PREFETCH_BASE_APT + string + default "kas/opt/prefetch-base-apt.yaml" + depends on PREFETCH_BASE_APT diff --git a/kas/opt/prefetch-base-apt.yaml b/kas/opt/prefetch-base-apt.yaml new file mode 100644 index 00000000..0cbdb93f --- /dev/null +++ b/kas/opt/prefetch-base-apt.yaml @@ -0,0 +1,9 @@ +# This software is a part of Isar. +# Copyright (C) 2024 ilbers GmbH + +header: + version: 14 + +local_conf_header: + prefetch-base-apt: | + ISAR_PREFETCH_BASE_APT = "1"