Skip to content

Commit

Permalink
Switch to Fedora for the auroraboot image (#125)
Browse files Browse the repository at this point in the history
* Switch to Fedora for the auroraboot image

because opensuse/leap doesn't have latest systemd and older systemd-repart
doesn't support the flags we are passing (e.g.  --make-ddi).

Our other option would be to switch to Tumbleweed but that might be too
unstable for us to use for Auroraboot.

This is reviving the work here:
kairos-io/osbuilder#128

later reverted here:
kairos-io/osbuilder@7813c2e

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Add binutils (for objcopy)

Signed-off-by: Dimitris Karakasilis <[email protected]>

* Add qemu-img and qemu-system-x86_64

Signed-off-by: Dimitris Karakasilis <[email protected]>

---------

Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily authored Dec 2, 2024
1 parent 8ce5d2e commit 5b205b6
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG FEDORA_VERSION=40
ARG LUET_VERSION=0.35.5
ARG LEAP_VERSION=15.5

FROM quay.io/luet/base:$LUET_VERSION AS luet

Expand All @@ -14,11 +14,19 @@ ENV CGO_ENABLED=0
ENV VERSION=$VERSION
RUN go build -ldflags "-X main.version=${VERSION}" -o auroraboot

FROM opensuse/leap:$LEAP_VERSION AS default
RUN zypper ref && zypper dup -y
FROM fedora:$FEDORA_VERSION AS default
RUN dnf -y update
## ISO+ Arm image + Netboot + cloud images Build depedencies
RUN zypper ref && zypper in -y bc qemu qemu-tools jq cdrtools docker git curl gptfdisk kpartx sudo xfsprogs parted binutils \
util-linux-systemd systemd-experimental e2fsprogs curl util-linux udev rsync grub2 dosfstools grub2-x86_64-efi squashfs mtools xorriso lvm2 zstd
RUN dnf in -y bc qemu-tools qemu-img qemu-system-x86.x86_64 jq genisoimage docker git curl gdisk kpartx \
sudo xfsprogs parted e2fsprogs erofs-utils binutils curl util-linux udev rsync \
grub2 dosfstools mtools xorriso lvm2 zstd sbsigntools squashfs-tools openssl \
python3-cryptography python3-pefile # ukify deps
# systemd-ukify systemd-boot
# Install grub2-efi-x64 only on x86 arches
RUN if [ "$(uname -m)" == "x86_64" ]; then dnf install -y grub2-efi-x64; fi
# Install grub2-efi-arm64 only on arm64 arches
RUN if [ "$(uname -m)" == "aarch64" ]; then dnf install -y grub2-efi-aa64; fi

COPY --from=luet /usr/bin/luet /usr/bin/luet
ENV LUET_NOLOCK=true
ENV TMPDIR=/tmp
Expand Down

0 comments on commit 5b205b6

Please sign in to comment.