Updated udev overlay for case-insensitive

Co-authored-by: acabrera86 <acabrera86@users.noreply.github.com>
Signed-off-by: Stephen Simpson <ssimpson89@users.noreply.github.com>
This commit is contained in:
Stephen Simpson
2025-05-02 16:40:31 -05:00
parent 0edfc97856
commit 9b94c6c8c3
3 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Added override.conf for nm-wait-online-initrd.service with dracut.
### Fixed
- Updated 70-persistent-net.rules.ww to use `(lower $netdev.Type)` for case-insensitive comparison of "infiniband".
## v4.6.1, 2025-04-04
### Added

View File

@@ -46,3 +46,4 @@
* Daniele Colombo [@dacolombo](https://github.com/dacolombo)
* Stephen Simpson [@ssimpson89](https://github.com/ssimpson89)
* Rafael Lopez <raflopez1@gmail.com> @rafalop
* Arian Cabrera [@acabrera86](https://github.com/acabrera86)

View File

@@ -1,7 +1,7 @@
# This file is autogenerated by warewulf
{{range $devname, $netdev := .NetDevs}}
{{- if $netdev.Hwaddr }}
{{- if eq $netdev.Type "infiniband" }}
{{- if eq (lower $netdev.Type) "infiniband" }}
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="?*{{ $netdev.Hwaddr }}", NAME="{{ $netdev.Device }}"
{{- else }}
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="{{ $netdev.Hwaddr }}", NAME="{{ $netdev.Device }}"