The patch at http://comments.gmane.org/gmane.linux.kernel.initramfs/2244 takes care of only the MAC conversion to lower case in the interface name. But the same has to be taken care for BOOTIF also. This patch takes care of changing the BOOTIF to lower case.

Note that sed has been used instead of tr, as dracut does not install tr to the initramfs, atleast on RHEL 6.x.

Signed-off-by: Srinivasa T N ([email protected])

diff -rNu a/dracut-004/modules.d/40network/net-genrules.sh 
b/dracut-004/modules.d/40network/net-genrules.sh
--- a/dracut-004/modules.d/40network/net-genrules.sh    2012-06-26 
21:51:37.835027611 +0530
+++ b/dracut-004/modules.d/40network/net-genrules.sh    2012-06-25 
14:21:02.905652291 +0530
@@ -10,7 +10,8 @@
     macaddr=${macaddr%:}
     # strip hardware type field from pxelinux
     [ -n "${macaddr%??:??:??:??:??:??}" ] && macaddr=${macaddr#??:}
-    echo $macaddr
+    # return macaddr with lowercase alpha characters expected by udev
+    echo $macaddr | sed 'y/ABCDEF/abcdef/'
 }
 
 # Don't continue if we don't need network

Reply via email to