From 9578f0d4f13ec326d4842792bd3591765a70be4d Mon Sep 17 00:00:00 2001 From: Marcin Maciaszczyk Date: Fri, 3 Jan 2025 14:11:04 +0100 Subject: [PATCH] add target to create custom iso --- Makefile | 11 +++++++++++ config.yaml | 6 ++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index febc635..26a858a 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ UNAME := $(shell uname) # We have experienced some issues with the latest image, that’s why it’s previous version OFFICIAL_IMAGE := quay.io/kairos/alpine:3.19-standard-arm64-rpi3-v3.2.3-k3sv1.31.2-k3s1-img +# TODO: Add latest tag and use it here +CUSTOM_IMAGE := ghcr.io/pluralsh/edge:sha-456f53e + # Replace it with your device name of memory card DEVICE_PATH := /dev/rdisk4 @@ -27,3 +30,11 @@ endif build-custom-image: docker build --build-arg TARGETARCH=$(TARGETARCH) . + +# FIXME +create-custom-iso: + docker run --rm -ti -v ${PWD}/config.yaml:/config.yaml -v ${PWD}:/tmp quay.io/kairos/auroraboot \ + --set "container_image=${CUSTOM_IMAGE}" + --set "disable_http_server=true" \ + --set "disable_netboot=true" \ + --cloud-config /config.yaml diff --git a/config.yaml b/config.yaml index 4eb2e53..9f3a5df 100644 --- a/config.yaml +++ b/config.yaml @@ -1,8 +1,6 @@ hostname: metal-{{ trunc 4 .MachineID }} users: - name: kairos - # Change to your pass here passwd: kairos - ssh_authorized_keys: - # Replace with your github user and un-comment the line below: - # - github:mudler +# ssh_authorized_keys: +# - github:mudler