Skip to content

Commit dd8e78f

Browse files
committed
feature/network: Add support of infiniband network mac addresses
Infiniband MAC addresses have 20 octets. Signed-off-by: Alexey Gladkov <[email protected]>
1 parent 74600c1 commit dd8e78f

File tree

1 file changed

+5
-1
lines changed
  • features/network/data/lib/initrd/post/cmdline

1 file changed

+5
-1
lines changed

features/network/data/lib/initrd/post/cmdline/network

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,12 @@ ifname_to_var()
142142
interface="${1#:}"
143143
macaddr="$2:$3:$4:$5:$6:$7"
144144
;;
145+
21)
146+
interface="${1#:}"
147+
macaddr="$2:$3:$4:$5:$6:$7:$8:$9:${10}:${11}:${12}:${13}:${14}:${15}:${16}:${17}:${18}:${19}:${20}:${21}"
148+
;;
145149
*)
146-
fatal "syntax error: ifname must contain 7 components"
150+
fatal "syntax error: ifname must contain 7 or 21 components"
147151
;;
148152
esac
149153
}

0 commit comments

Comments
 (0)