diff --git a/packages/core/installer/Makefile b/packages/core/installer/Makefile index 71369889..422b2564 100644 --- a/packages/core/installer/Makefile +++ b/packages/core/installer/Makefile @@ -52,9 +52,9 @@ image-matchbox: --load=$(LOAD) echo "$(REGISTRY)/matchbox:$(TALOS_VERSION)" > images/matchbox.tag -assets: talos-iso +assets: talos-iso talos-nocloud -talos-initramfs talos-kernel talos-installer talos-iso: +talos-initramfs talos-kernel talos-installer talos-iso talos-nocloud: mkdir -p ../../../_out/assets cat images/talos/profiles/$(subst talos-,,$@).yaml | \ docker run --rm -i -v /dev:/dev --privileged "ghcr.io/siderolabs/imager:$(TALOS_VERSION)" --tar-to-stdout - | \ diff --git a/packages/core/installer/hack/gen-profiles.sh b/packages/core/installer/hack/gen-profiles.sh index 409e0f28..43e4db6d 100755 --- a/packages/core/installer/hack/gen-profiles.sh +++ b/packages/core/installer/hack/gen-profiles.sh @@ -2,7 +2,7 @@ set -e set -u -PROFILES="initramfs kernel iso installer" +PROFILES="initramfs kernel iso installer nocloud" FIRMWARES="amd-ucode amdgpu-firmware bnx2-bnx2x i915-ucode intel-ice-firmware intel-ucode qlogic-firmware" EXTENSIONS="drbd zfs" @@ -32,6 +32,14 @@ done for profile in $PROFILES; do echo "writing profile images/talos/profiles/$profile.yaml" + if [ "$profile" = "nocloud" ]; then + image_options="{ diskSize: 1306525696, diskFormat: raw }" + out_format=".xz" + else + image_options="{}" + out_format="raw" + fi + cat > images/talos/profiles/$profile.yaml <