Skip to content

Commit ec703e8

Browse files
committed
Fix uuid selector for RAID devices
1 parent f710db8 commit ec703e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/models/machine_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def generate_config(output_type: server.talos_type)
113113
# Talos takes the UUID hex and puts colons every 8 characters
114114
# 1a462672-bd83-888c-df8f-a57e6b38f998 -> 1a462672:bd83888c:df8fa57e:6b38f998
115115
uuid_talos_style = id.delete("-").chars.each_slice(8).map(&:join).join(":")
116-
"'dev/disk/by-id/md-uuid-#{uuid_talos_style}' in disk.symlinks"
116+
"'/dev/disk/by-id/md-uuid-#{uuid_talos_style}' in disk.symlinks"
117117
end
118118

119119
config += <<~YAML

spec/models/machine_config_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
name: EPHEMERAL
215215
provisioning:
216216
diskSelector:
217-
match: "'dev/disk/by-id/md-uuid-1a462672:bd83888c:df8fa57e:6b38f998' in disk.symlinks"
217+
match: "'/dev/disk/by-id/md-uuid-1a462672:bd83888c:df8fa57e:6b38f998' in disk.symlinks"
218218
minSize: 10GB
219219
grow: true
220220
YAML

0 commit comments

Comments
 (0)