Package: udev
Version: 0.114-2

udev does not respect '#' comment when the rule otherwise matches the
parsing rules, requiring DELETION of the offending line rather than
commenting-out

Original '/etc/udev/rules.d/z25_persistent-net.rules' before udev
first run (copied from another machine):

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:11:09:90:3c:b0",
NAME="eth0"

After first run on another machine, the file has been updated:

# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.

# SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:11:09:90:3c:b0",
NAME="eth0"

# PCI device 0x8086:0x1229 (e100)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:a0:c9:74:40:bb", NAME="eth1"

Conclusion:

We can see the '#' comment on the eth0 line is ignored, causing the
interface to be renamed eth1.  The current workaround is to delete the
line.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to