Skip to contentSkip to conversation

Get ifaces for udev rule use

RFC PATCH In review Dave Young 1 participant 2 messages Nov 8, 2012 – Nov 9, 2012 1 message not in the archive

lore
Share & tools
lore

Dave Young

author
#0 lore raw

RFC PATCH 5/6 Get ifaces for udev rule use

Get ifaces for udev rule use

In case without BOOTIF, but /tmp/ifaces are already created. net-genrule.sh will fall to bring up all net interfaces.

Fix by reading from /tmp/ifaces before generating rules instead.

---
 modules.d/40network/net-genrules.sh |    2 ++
 1 file changed, 2 insertions(+)
modules.d/40network/net-genrules.sh +2 -0
@@ -19,6 +19,8 @@ if [ -z "$netroot" ] && [ ! -e "/tmp/net
     return
 fi
 
+[ -e /tmp/net.ifaces ] && read IFACES < /tmp/net.ifaces
+
 # Write udev rules
 {
     # bridge: attempt only the defined interface
author
#2 lore raw
In reply to a message not in the archive

Please ignore this. Last post 5/6 got received as well.

They were rejected by vger.kernel.org maybe because I use local postfix sendmail. After adding a relay server they were sent out finally..

Quoted 27 lines · Dave Young

Get ifaces for udev rule use

In case without BOOTIF, but /tmp/ifaces are already created. net-genrule.sh will fall to bring up all net interfaces.

Fix by reading from /tmp/ifaces before generating rules instead.

---
 modules.d/40network/net-genrules.sh |    2 ++
 1 file changed, 2 insertions(+)
modules.d/40network/net-genrules.sh +2 -1
@@ -19,6 +19,8 @@ if [ -z "$netroot" ] && [ ! -e "/tmp/net
     return
 fi
 
+[ -e /tmp/net.ifaces ] && read IFACES < /tmp/net.ifaces
+
 # Write udev rules
 {
     # bridge: attempt only the defined interface
--

To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thanks
Dave