From 4a5508e0862cd547e16270e2a2e56d199e149fe2 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Sun, 29 Aug 2021 12:25:33 +0200 Subject: [PATCH] stages/bootiso.mono: support for aarch64 tempates Use the aarch64 templates if the efi architecture was set to AA64. NB: since we only support efi booting for aarch64 this should be good enough for aarch64 selection. --- stages/org.osbuild.bootiso.mono | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stages/org.osbuild.bootiso.mono b/stages/org.osbuild.bootiso.mono index bb0fa8894..b345b7405 100755 --- a/stages/org.osbuild.bootiso.mono +++ b/stages/org.osbuild.bootiso.mono @@ -349,7 +349,16 @@ def main(inputs, root, options, workdir, loop_client): # input directories templatedir = os.path.join(LORAX_TEMPLATES, templates) - configdir = os.path.join(templatedir, "config_files", "x86") + + # select the template based on the architecture, where + # we reuse the efi setting, since we only support efi + # on aarch64 this is good enough for now + if efi and "AA64" in efi["architectures"]: + arch = "aarch64" + else: + arch = "x86" + + configdir = os.path.join(templatedir, "config_files", arch) # output directories imgdir = os.path.join(root, "images")