blino's website

Free software developer and more

Our persistent network interfaces naming scripts break tap devices naming, since they kinda "remember" interfaces names based on the MAC address (bug #22748).

udev_net_name_helper, which handles interfaces naming, shouldn't be run for this kind of devices (it's run from /etc/udev/rules.d/62-create_persistent.rules).

Since udev_net_helper already has some interface types blacklist, the proper way to solve this issue would be to extract the blacklist in put in a common udev rules file.

SUBSYSTEM!="net", GOTO="mdv_net_end"
ENV{INTERFACE}=="", GOTO="mdv_net_end"

ENV{INTERFACE}=="ppp*|ippp*|isdn*|plip*|lo*|irda*|dummy*|ipsec*|vmnet*", GOTO="mdv_net_end"
ENV{INTERFACE}=="tap*|tun*", GOTO="mdv_net_ifcfg_end"

# implement ethernet check here

ACTION!="add", GOTO="mdv_net_ifcfg_end"
SYSFS{address}=="?*", ENV{MDV_CONFIGURED}!="yes", PROGRAM="/bin/flock /sys/class/net /lib/udev/udev_net_name_helper %s{address}", NAME="%c
RUN+="net_ifcfg_helper"
LABEL="mdv_net_ifcfg_end"

ACTION=="add", RUN+="/sbin/ifup ENV{INTERFACE} daemon"
ACTION=="remove", RUN+="/sbin/ifdown ENV{INTERFACE} daemon"

LABEL="mdv_net_end"


Comments are closed for this story.

Trackbacks are closed for this story.

blosxom Optimised for standards.
Olivier Blin (2005)