mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-12-24 12:22:35 +00:00
Compare commits
23 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10b1baff0d | ||
|
|
5c13bd2bdc | ||
|
|
c86be82d66 | ||
|
|
104eb89548 | ||
|
|
815a9e2898 | ||
|
|
52475cf069 | ||
|
|
f30e9a6a6a | ||
|
|
7005550b32 | ||
|
|
18959ee26a | ||
|
|
cbc6ca3fc0 | ||
|
|
44fb9dc165 | ||
|
|
902c311c17 | ||
|
|
f8a2ff5531 | ||
|
|
ca2d1fc9cc | ||
|
|
c2748aecad | ||
|
|
b834974606 | ||
|
|
30f8b9cb1c | ||
|
|
2b601c1420 | ||
|
|
e5cded4980 | ||
|
|
a482917a27 | ||
|
|
48c41866ed | ||
|
|
89f39c7ada | ||
|
|
5158b5b7f3 |
2
tests/fixtures/simple.yaml
vendored
2
tests/fixtures/simple.yaml
vendored
@@ -31,7 +31,7 @@ spec:
|
||||
fi
|
||||
menuentry "install" --class os --unrestricted {
|
||||
echo Loading kernel...
|
||||
$linux ($root)/boot/kernel.xz cdroot root=live:CDLABEL=COS_LIVE rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 console=ttyS0 rd.cos.disable vga=795 nomodeset nodepair.enable
|
||||
$linux ($root)/boot/kernel.xz cdroot root=live:CDLABEL=COS_LIVE rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 console=ttyS0 rd.cos.disable vga=795 nomodeset install-mode
|
||||
echo Loading initrd...
|
||||
$initrd ($root)/boot/rootfs.xz
|
||||
}
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
# https://quay.io/repository/kairos/packages?tab=tags&tag=latest
|
||||
ARG LEAP_VERSION=15.5
|
||||
ARG FEDORA_VERSION=39
|
||||
ARG LUET_VERSION=0.35.0
|
||||
ARG ENKI_VERSION=v0.0.5
|
||||
ARG ENKI_VERSION=v0.0.16
|
||||
|
||||
FROM quay.io/luet/base:$LUET_VERSION AS luet
|
||||
FROM quay.io/kairos/enki:${ENKI_VERSION} as enki
|
||||
|
||||
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-tools jq cdrtools docker git curl gptfdisk kpartx sudo xfsprogs parted util-linux-systemd e2fsprogs curl util-linux udev rsync grub2 dosfstools grub2-x86_64-efi squashfs mtools xorriso lvm2 zstd
|
||||
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
|
||||
# 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
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
set dns 8.8.8.8
|
||||
ifconf
|
||||
kernel ${RELEASE_URL}/${VERSION}/${ISO_NAME}-kernel root=live:${RELEASE_URL}/${VERSION}/${ISO_NAME}.squashfs initrd=${ISO_NAME}-initrd rd.neednet=1 ip=dhcp rd.cos.disable netboot nodepair.enable config_url=${config} console=tty1 console=ttyS0 rd.live.overlay.overlayfs ${cmdline}
|
||||
kernel ${RELEASE_URL}/${VERSION}/${ISO_NAME}-kernel root=live:${RELEASE_URL}/${VERSION}/${ISO_NAME}.squashfs initrd=${ISO_NAME}-initrd rd.neednet=1 ip=dhcp rd.cos.disable netboot install-mode config_url=${config} console=tty1 console=ttyS0 rd.live.overlay.overlayfs ${cmdline}
|
||||
initrd ${RELEASE_URL}/${VERSION}/${ISO_NAME}-initrd
|
||||
boot
|
||||
@@ -12,4 +12,4 @@ repositories:
|
||||
priority: 2
|
||||
urls:
|
||||
- "quay.io/kairos/packages"
|
||||
reference: 20240112143427-repository.yaml
|
||||
reference: 20240205172246-repository.yaml
|
||||
|
||||
@@ -12,4 +12,4 @@ repositories:
|
||||
priority: 2
|
||||
urls:
|
||||
- "quay.io/kairos/packages-arm64"
|
||||
reference: 20240112143432-repository.yaml
|
||||
reference: 20240205172848-repository.yaml
|
||||
|
||||
@@ -19,7 +19,7 @@ set initrd $ARTIFACT_NAME-initrd
|
||||
set rootfs $ARTIFACT_NAME.squashfs
|
||||
# set config https://example.com/machine-config
|
||||
# set cmdline extra.values=1
|
||||
kernel \${url}/\${kernel} initrd=\${initrd} ip=dhcp rd.cos.disable root=live:\${url}/\${rootfs} netboot nodepair.enable config_url=\${config} console=tty1 console=ttyS0 \${cmdline}
|
||||
kernel \${url}/\${kernel} initrd=\${initrd} ip=dhcp rd.cos.disable root=live:\${url}/\${rootfs} netboot install-mode config_url=\${config} console=tty1 console=ttyS0 \${cmdline}
|
||||
initrd \${url}/\${initrd}
|
||||
boot
|
||||
EOF
|
||||
Reference in New Issue
Block a user