Skip to content

Commit 03ff8a8

Browse files
committed
test: Make test test-26-examples-build support multi arch
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
1 parent df71cea commit 03ff8a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tmt/tests/examples/bootc-uki/Containerfile.stage2

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ RUN --mount=type=secret,id=key \
2525
--measure \
2626
--json pretty \
2727
--output "/boot/$kver.efi"
28+
# To support multi arch
29+
systemd_boot_file=$(ls /usr/lib/systemd/boot/efi/*.efi | xargs -n 1 basename)
2830
sbsign \
2931
--key "/run/secrets/key" \
3032
--cert "/run/secrets/cert" \
31-
"/usr/lib/systemd/boot/efi/systemd-bootx64.efi" \
32-
--output "/boot/systemd-bootx64.efi"
33+
"/usr/lib/systemd/boot/efi/${systemd_boot_file}" \
34+
--output "/boot/${systemd_boot_file}"
3335
EOF
3436

3537
FROM base as final

0 commit comments

Comments
 (0)