Skip to content

Commit

Permalink
stages/bootiso.mono: support for aarch64 tempates
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gicmo authored and teg committed Aug 29, 2021
1 parent 597f5f9 commit 4a5508e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion stages/org.osbuild.bootiso.mono
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4a5508e

Please sign in to comment.