Skip to content

Commit

Permalink
fix: use proper stub for vmtoolsd on arm64
Browse files Browse the repository at this point in the history
Empty extension image for arm64 makes imager fail on arm64, and
specifically Image Factory when generating arm64 image.

Signed-off-by: Andrey Smirnov <[email protected]>
(cherry picked from commit aa141a6)
  • Loading branch information
smira committed Feb 14, 2025
1 parent 5eec54c commit 2d8255a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
14 changes: 12 additions & 2 deletions guest-agents/vmtoolsd-guest-agent/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@ name: vmtoolsd-guest-agent
variant: scratch
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
# VMWare doesn't support arm64
dependencies:
- stage: base
steps:
- prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/stub-manifest.yaml
- |
mkdir /rootfs
finalize:
- from: /
to: /
- from: /pkg/stub-manifest.yaml
to: /manifest.yaml
- from: /rootfs
to: /rootfs
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
dependencies:
- stage: base
Expand Down
10 changes: 10 additions & 0 deletions guest-agents/vmtoolsd-guest-agent/stub-manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: vmtoolsd-guest-agent
version: "$VERSION"
author: Brandon Nason
description: |
A stub for the VMWare Tools on arm64 (unavailable on arm64).
compatibility:
talos:
version: ">= v1.4.0"

0 comments on commit 2d8255a

Please sign in to comment.