xref: /openbmc/linux/Documentation/admin-guide/aoe/udev.txt (revision 0898782247ae533d1f4e47a06bc5d4870931b284)
1*83bbf6e1SMauro Carvalho Chehab# These rules tell udev what device nodes to create for aoe support.
2*83bbf6e1SMauro Carvalho Chehab# They may be installed along the following lines.  Check the section
3*83bbf6e1SMauro Carvalho Chehab# 8 udev manpage to see whether your udev supports SUBSYSTEM, and
4*83bbf6e1SMauro Carvalho Chehab# whether it uses one or two equal signs for SUBSYSTEM and KERNEL.
5*83bbf6e1SMauro Carvalho Chehab#
6*83bbf6e1SMauro Carvalho Chehab#   ecashin@makki ~$ su
7*83bbf6e1SMauro Carvalho Chehab#   Password:
8*83bbf6e1SMauro Carvalho Chehab#   bash# find /etc -type f -name udev.conf
9*83bbf6e1SMauro Carvalho Chehab#   /etc/udev/udev.conf
10*83bbf6e1SMauro Carvalho Chehab#   bash# grep udev_rules= /etc/udev/udev.conf
11*83bbf6e1SMauro Carvalho Chehab#   udev_rules="/etc/udev/rules.d/"
12*83bbf6e1SMauro Carvalho Chehab#   bash# ls /etc/udev/rules.d/
13*83bbf6e1SMauro Carvalho Chehab#   10-wacom.rules  50-udev.rules
14*83bbf6e1SMauro Carvalho Chehab#   bash# cp /path/to/linux/Documentation/admin-guide/aoe/udev.txt \
15*83bbf6e1SMauro Carvalho Chehab#           /etc/udev/rules.d/60-aoe.rules
16*83bbf6e1SMauro Carvalho Chehab#
17*83bbf6e1SMauro Carvalho Chehab
18*83bbf6e1SMauro Carvalho Chehab# aoe char devices
19*83bbf6e1SMauro Carvalho ChehabSUBSYSTEM=="aoe", KERNEL=="discover",	NAME="etherd/%k", GROUP="disk", MODE="0220"
20*83bbf6e1SMauro Carvalho ChehabSUBSYSTEM=="aoe", KERNEL=="err",	NAME="etherd/%k", GROUP="disk", MODE="0440"
21*83bbf6e1SMauro Carvalho ChehabSUBSYSTEM=="aoe", KERNEL=="interfaces",	NAME="etherd/%k", GROUP="disk", MODE="0220"
22*83bbf6e1SMauro Carvalho ChehabSUBSYSTEM=="aoe", KERNEL=="revalidate",	NAME="etherd/%k", GROUP="disk", MODE="0220"
23*83bbf6e1SMauro Carvalho ChehabSUBSYSTEM=="aoe", KERNEL=="flush",	NAME="etherd/%k", GROUP="disk", MODE="0220"
24*83bbf6e1SMauro Carvalho Chehab
25*83bbf6e1SMauro Carvalho Chehab# aoe block devices
26*83bbf6e1SMauro Carvalho ChehabKERNEL=="etherd*",       GROUP="disk"
27