* Patch for ip setting on bridge interface and vlan
@ 2013-01-23 22:12 Kevin Yung
2013-01-23 22:51 ` Patch Kevin Yung
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Yung @ 2013-01-23 22:12 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Hi all,
I have an environment that needs to boot on bridged interface or
interface using vlan.
I found curent dracut release will by pass ip settings on these interfaces.
So I wrote the a patch to set up provided ip options on the interfaces
that using bridge or vlan.
Please let me know if I need to tidy it up a bit more or
add additional code to handle ip settings on bridge
and vlan.
Cheers
Kevin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Patch
2013-01-23 22:12 Patch for ip setting on bridge interface and vlan Kevin Yung
@ 2013-01-23 22:51 ` Kevin Yung
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Yung @ 2013-01-23 22:51 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
--- ifup.sh.org 2013-01-21 17:46:19.000000000 +1100
+++ ifup.sh.new 2013-01-24 09:50:46.000000000 +1100
@@ -17,6 +17,8 @@
# $netif reads easier than $1
netif=$1
+use_bridge='false'
+use_vlan='false'
# enslave this interface to bond?
if [ -e /tmp/bond.info ]; then
@@ -46,6 +48,7 @@
: # We need to really setup bond (recursive call)
else
netif="$bridgename"
+ use_bridge='true'
fi
fi
done
@@ -58,6 +61,7 @@
: # We need to really setup bond (recursive call)
else
netif="$vlanname"
+ use_vlan='true'
fi
fi
fi
@@ -256,6 +260,7 @@
fi
fi
+
# Specific configuration, spin through the kernel command line
# looking for ip= lines
for p in $(getargs ip=); do
@@ -264,7 +269,9 @@
[ "$autoconf" = "ibft" ] && continue
# If this option isn't directed at our interface, skip it
- [ -n "$dev" ] && [ "$dev" != "$netif" ] && continue
+ [ -n "$dev" ] && [ "$dev" != "$netif" ] && \
+ [ "$use_bridge" != 'true' ] && \
+ [ "$use_vlan" != 'true' ] && continue
# Store config for later use
for i in ip srv gw mask hostname macaddr; do
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-23 22:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-23 22:12 Patch for ip setting on bridge interface and vlan Kevin Yung
2013-01-23 22:51 ` Patch Kevin Yung
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.