Skip to content

Commit

Permalink
set the image builder to imager when running on linux 6.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Oct 22, 2024
1 parent e5fbcab commit 51cfdf9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions do
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/bin/bash
set -euo pipefail

# the talos image builder. one of:
# the talos image builder.
# NB this can be one of:
# imager: build locally using the ghcr.io/siderolabs/imager container image.
# image_factory: build remotely using the image factory service at https://factory.talos.dev.
talos_image_builder="image_factory"
# NB this is automatically set to imager when running on linux 6.1+; otherwise,
# it is set to image_factory.
talos_image_builder="$(perl -e 'print ((`uname -r` =~ /^(\d+\.\d+)/ && $1 >= 6.1) ? "imager" : "image_factory")')"

# see https://github.com/siderolabs/talos/releases
# renovate: datasource=github-releases depName=siderolabs/talos
Expand Down

0 comments on commit 51cfdf9

Please sign in to comment.