]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
network: strip pxelinux hardware type field from BOOTIF
authorHarald Hoyer <harald@redhat.com>
Fri, 11 Jun 2010 11:16:36 +0000 (13:16 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 11 Jun 2010 11:16:36 +0000 (13:16 +0200)
modules.d/40network/net-genrules.sh

index 10d6ecd001f107efe9dbbfc1a8703da127b983bb..7a26909648d755da4a4838d4e3bee5002aa9ec63 100755 (executable)
@@ -6,6 +6,8 @@ fix_bootif() {
     local IFS='-'
     macaddr=$(for i in ${macaddr} ; do echo -n $i:; done)
     macaddr=${macaddr%:}
+    # strip hardware type field from pxelinux
+    [ -n "${macaddr%??:??:??:??:??:??}" ] && macaddr=${macaddr#??:}
     echo $macaddr
 }