Skip to content

Commit

Permalink
default deviceName to sda
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Sep 5, 2024
1 parent 14f146e commit 9121123
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ztp/scripts/siteconfig.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,8 @@ spec:
name: {{ cluster }}-ztp-{{ spoke_name }}-bmc-secret-{{ num }}
bootMACAddress: {{ mac }}
bootMode: {{ 'UEFI' if ztp_uefi else 'legacy' }}
{% if 'disk' in node %}
rootDeviceHints:
deviceName: /dev/{{ node.disk | basename }}
{% endif %}
deviceName: /dev/{{ node.disk|default('sda')|string|basename }}
{% if 'ip' in node %}
nodeNetwork:
interfaces:
Expand Down

0 comments on commit 9121123

Please sign in to comment.