public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Allow customization inside the schroot-run
@ 2026-07-14 11:25 Ulrich Teichert
  0 siblings, 0 replies; only message in thread
From: Ulrich Teichert @ 2026-07-14 11:25 UTC (permalink / raw)
  To: isar-users; +Cc: Ulrich Teichert

Allow customization inside the schroot-run of image-tools-extension
by introducing the variables IMAGER_SCHROOT_CMD (useful
to inject a local apt-repository into the schroot),
IMAGER_SCHROOT_UPDATE_OPTS (to add the sources list) and
IMAGER_SCHROOT_INSTALL_OPTS (to inject installation options during install).

Signed-off-by: Ulrich Teichert <ulrich.teichert@kumkeo.de>
---
 meta/classes-recipe/image-tools-extension.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes-recipe/image-tools-extension.bbclass b/meta/classes-recipe/image-tools-extension.bbclass
index ab616b7e..5e8a8719 100644
--- a/meta/classes-recipe/image-tools-extension.bbclass
+++ b/meta/classes-recipe/image-tools-extension.bbclass
@@ -49,14 +49,17 @@ imager_run() {

         E="${@ isar_export_proxies(d)}"
         deb_dl_dir_import ${schroot_dir} ${distro}
+        if [ ! -z "${IMAGER_SCHROOT_CMD}" ]; then ${IMAGER_SCHROOT_CMD}; fi
         ${SCRIPTSDIR}/lockrun.py -r -f "${REPO_ISAR_DIR}/isar.lock" -s <<EOAPT
         schroot -r -c ${session_id} -d / -u root -- sh -c " \
             apt-get update \
                 -o Dir::Etc::SourceList='sources.list.d/isar-apt.list' \
+                ${IMAGER_SCHROOT_UPDATE_OPTS} \
                 -o Dir::Etc::SourceParts='-' \
                 -o APT::Get::List-Cleanup='0'
             apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y \
                 --allow-unauthenticated --allow-downgrades --download-only install \
+                ${IMAGER_SCHROOT_INSTALL_OPTS} \
                 ${local_install}"
 EOAPT

--
2.47.3


Mit freundlichen Grüßen / Best regards


Dipl.-Inform. Ulrich Teichert
Senior Software Engineer



Phone +49 431 375938-0
_____________________________________

Im Zuge der Weiterentwicklung unserer Unternehmensstruktur stellen wir die gesamte E-Mail-Kommunikation der e.bs group auf eine neue, einheitliche Domain @ebs-group.io um. Dies geschieht sukzessive. Ab sofort erhalten Sie daher für die umgestellten Kontakte auch E-Mails unter der Domain @ebs-group.io. Wir bitten diese Domain in Ihr Whitelisting für E-Mails oder z.B. auch MS-Teams mit aufzunehmen. E-Mails, welche Sie an die Ihnen bekannten @kumkeo.de Adressen senden, werden weiterhin bei den vorgesehenen Empfängern eingehen.
_____________________________________

e.bs kumkeo GmbH
Am Kiel-Kanal 1
24106 Kiel, Deutschland

ebs-group.io

Rechnungen bitte an e.bs kumkeo GmbH, Heidenkampsweg 82a, 20097 Hamburg

Geschäftsführer Michael Leitner, Günter Hagspiel
Registergericht Amtsgericht Hamburg
Registernummer HRB 187712
USt-Idnr. DE449906070


-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/7bb712706e1541d2a454ef6efaabf777%40kumkeo.de.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-15 10:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 11:25 [PATCH] Allow customization inside the schroot-run Ulrich Teichert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox