Skip to content

Commit 10b1baf

Browse files
authored
Merge pull request #129 from kairos-io/fix_arm64_build
2 parents c86be82 + 5c13bd2 commit 10b1baf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools-image/Dockerfile

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ FROM quay.io/kairos/enki:${ENKI_VERSION} as enki
99
FROM fedora:$FEDORA_VERSION as default
1010
RUN dnf -y update
1111
## ISO+ Arm image + Netboot + cloud images Build depedencies
12-
RUN dnf in -y bc qemu-tools jq genisoimage docker git curl gdisk kpartx sudo xfsprogs parted e2fsprogs curl util-linux udev rsync grub2 dosfstools mtools xorriso lvm2 zstd sbsigntools grub2-efi-x64 squashfs-tools openssl systemd-ukify systemd-boot
12+
RUN dnf in -y bc qemu-tools jq genisoimage docker git curl gdisk kpartx sudo xfsprogs parted e2fsprogs curl util-linux udev rsync grub2 dosfstools mtools xorriso lvm2 zstd sbsigntools squashfs-tools openssl systemd-ukify systemd-boot
13+
# Install grub2-efi-x64 only on x86 arches
14+
RUN if [ "$(uname -m)" == "x86_64" ]; then dnf install -y grub2-efi-x64; fi
15+
# Install grub2-efi-arm64 only on arm64 arches
16+
RUN if [ "$(uname -m)" == "aarch64" ]; then dnf install -y grub2-efi-aa64; fi
17+
1318
COPY --from=luet /usr/bin/luet /usr/bin/luet
1419
ENV LUET_NOLOCK=true
1520
ENV TMPDIR=/tmp

0 commit comments

Comments
 (0)