Skip to content
Draft
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
22 changes: 21 additions & 1 deletion packages/core/talos/hack/gen-profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,47 @@ for extension in $EXTENSIONS; do
export "$extension_var=$image"
done

customizationDefinition=$(cat <<EOF
customization:
extraKernelArgs:
- cpufreq.default_governor=performance
- amd_pstate=active
- intel_idle.max_cstate=0
EOF
)
for profile in $PROFILES; do
echo "writing profile images/talos/profiles/$profile.yaml"
case "$profile" in
initramfs|kernel|iso)
iso)
customization=$customizationDefinition
image_options="{}"
out_format="raw"
platform="metal"
kind="$profile"
;;
initramfs|kernel)
customization=
image_options="{}"
out_format="raw"
platform="metal"
kind="$profile"
;;
installer)
customization=$customizationDefinition
image_options="{}"
out_format="raw"
platform="metal"
kind="installer"
;;
metal)
customization=$customizationDefinition
image_options="{ diskSize: 1306525696, diskFormat: raw }"
out_format=".xz"
platform="metal"
kind="image"
;;
nocloud)
customization=$customizationDefinition
image_options="{ diskSize: 1306525696, diskFormat: raw }"
out_format=".xz"
platform="nocloud"
Expand All @@ -73,6 +92,7 @@ arch: amd64
platform: ${platform}
secureboot: false
version: ${TALOS_VERSION}
${customization}
input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
1 change: 1 addition & 0 deletions packages/core/talos/images/talos/profiles/initramfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ arch: amd64
platform: metal
secureboot: false
version: v1.12.1

input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
5 changes: 5 additions & 0 deletions packages/core/talos/images/talos/profiles/installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ arch: amd64
platform: metal
secureboot: false
version: v1.12.1
customization:
extraKernelArgs:
- cpufreq.default_governor=performance
- amd_pstate=active
- intel_idle.max_cstate=0
input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
5 changes: 5 additions & 0 deletions packages/core/talos/images/talos/profiles/iso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ arch: amd64
platform: metal
secureboot: false
version: v1.12.1
customization:
extraKernelArgs:
- cpufreq.default_governor=performance
- amd_pstate=active
- intel_idle.max_cstate=0
input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
1 change: 1 addition & 0 deletions packages/core/talos/images/talos/profiles/kernel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ arch: amd64
platform: metal
secureboot: false
version: v1.12.1

input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
5 changes: 5 additions & 0 deletions packages/core/talos/images/talos/profiles/metal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ arch: amd64
platform: metal
secureboot: false
version: v1.12.1
customization:
extraKernelArgs:
- cpufreq.default_governor=performance
- amd_pstate=active
- intel_idle.max_cstate=0
input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
5 changes: 5 additions & 0 deletions packages/core/talos/images/talos/profiles/nocloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ arch: amd64
platform: nocloud
secureboot: false
version: v1.12.1
customization:
extraKernelArgs:
- cpufreq.default_governor=performance
- amd_pstate=active
- intel_idle.max_cstate=0
input:
kernel:
path: /usr/install/amd64/vmlinuz
Expand Down
Loading