Skip to content

feat(hcloud): Talos snapshot images improvements #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions image.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ locals {

talos_image_extensions = distinct(
concat(
["siderolabs/qemu-guest-agent"],
var.talos_image_extensions,
var.longhorn_enabled ? local.talos_image_extentions_longhorn : []
)
Expand Down
4 changes: 4 additions & 0 deletions packer/image_amd64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ build {
<<-EOT
set -euo pipefail

# Discard the entire /dev/sda to free up space and make the snapshot smaller
echo 'Zeroing disk first before writing Talos image'
blkdiscard /dev/sda 2>/dev/null

echo 'Download Talos ${var.talos_version} image (${var.talos_schematic_id})'

wget \
Expand Down
4 changes: 4 additions & 0 deletions packer/image_arm64.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ build {
<<-EOT
set -euo pipefail

# Discard the entire /dev/sda to free up space and make the snapshot smaller
echo 'Zeroing disk first before writing Talos image'
blkdiscard /dev/sda 2>/dev/null

echo 'Download Talos ${var.talos_version} image (${var.talos_schematic_id})'

wget \
Expand Down