All of lore.kernel.org
 help / color / mirror / Atom feed
From: Srinivasa T N <seenutn-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH 1/1] Convert MAC in BOOTIF parameter to lower case
Date: Wed, 27 Jun 2012 00:04:36 +0530	[thread overview]
Message-ID: <4FEA00BC.8090505@linux.vnet.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 469 bytes --]

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 (seenutn-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org)


[-- Attachment #2: convert-mac-to-lower-net-genrules.patch --]
[-- Type: text/plain, Size: 628 bytes --]

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	other threads:[~2012-06-26 18:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-26 18:34 Srinivasa T N [this message]
     [not found] ` <4FEA00BC.8090505-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2012-06-27 10:33   ` [PATCH 1/1] Convert MAC in BOOTIF parameter to lower case Anton Blanchard
2012-06-27 11:37     ` Srinivasa T N
     [not found]       ` <4FEAF08F.1030103-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
2012-06-29 10:32         ` Srinivasa T N

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FEA00BC.8090505@linux.vnet.ibm.com \
    --to=seenutn-23vcf4htsmix0ybbhkvfkdbpr1lh4cv8@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.