Skip to content

Instantly share code, notes, and snippets.

@lsjostro
Last active May 6, 2023 17:22
Show Gist options
  • Save lsjostro/0cdc6d6b5fdddb33f83e4c8b4e2826ee to your computer and use it in GitHub Desktop.
Save lsjostro/0cdc6d6b5fdddb33f83e4c8b4e2826ee to your computer and use it in GitHub Desktop.
talos iso convert to nocloud platform
docker run --rm -i -w /work -v "$PWD":/work --entrypoint sh ghcr.io/siderolabs/imager:v1.4.0 -c '
installer iso --arch amd64 --output . &&
xorriso -osirrox on -indev ./talos-amd64.iso -extract / /tmp &&
rm -f ./talos-amd64.iso &&
sed -i 's/talos.platform=metal/talos.platform=nocloud/g' /tmp/boot/grub/grub.cfg &&
grub-mkrescue --compress=xz --output=./talos-amd64-nocloud.iso /tmp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment