[PATCH 3/4] mmdebstrap: Allow for DISTRO_SOURCE to be empty

5 views
Skip to first unread message

Andreas Naumann

unread,
Aug 12, 2025, 9:50:36 AMAug 12
to isar-...@googlegroups.com, Andreas Naumann
For isar-apt to be actually used, mmdebstrap needs to be supplied
with the correct suite name, "isar" as default.

Introduce a flag which allows switching to use the suite of the
internal isar-apt instead of DISTRO_SOURCE

Signed-off-by: Andreas Naumann <anau...@emlix.com>
---
meta/classes/bootstrap.bbclass | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta/classes/bootstrap.bbclass b/meta/classes/bootstrap.bbclass
index 64702d5d54..ae1dec9318 100644
--- a/meta/classes/bootstrap.bbclass
+++ b/meta/classes/bootstrap.bbclass
@@ -179,6 +179,8 @@ def generate_distro_sources(d):
yield parsed

def get_distro_primary_source_entry(d):
+ if bb.utils.to_boolean(d.getVar('ISAR_USE_ISAR_APT_TO_BOOTSTRAP')):
+ return ["", "${DEBDISTRONAME}", "main"]
for source in generate_distro_sources(d):
if source[0] == "deb":
return source[2:]
--
2.43.0

Reply all
Reply to author
Forward
0 new messages