* [PATCH 2/8] Add doc for vlan= cmdline
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 3/8] Add doc for bond= cmdline Cong Wang
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Dave Young, Harald Hoyer, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Document vlan= cmdline in dracut.cmdline(7).
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut.cmdline.7.asc | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
index 61cd139..95c6aea 100644
--- a/dracut.cmdline.7.asc
+++ b/dracut.cmdline.7.asc
@@ -304,6 +304,11 @@ auto6::: do IPv6 autoconfiguration
**rd.neednet=1**::
boolean, bring up network even without netroot set
+**vlan=_<vlanname>_:_<phydevice>_**::
+ Setup vlan device named <vlanname> on <phydeivce>.
+ We support the four styles of vlan names: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
+ DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
+
NFS
~~~
**root=**[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 3/8] Add doc for bond= cmdline
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-05-29 9:00 ` [PATCH 2/8] Add doc for vlan= cmdline Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 4/8] Add doc for birdge= cmdline Cong Wang
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Document bond= cmdline in dracut.cmdline(7).
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut.cmdline.7.asc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
index 95c6aea..79a4577 100644
--- a/dracut.cmdline.7.asc
+++ b/dracut.cmdline.7.asc
@@ -309,6 +309,15 @@ auto6::: do IPv6 autoconfiguration
We support the four styles of vlan names: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
+**bond=_<bondname>_[:_<bondslaves>_:[:_<options>_]]**::
+ Setup bonding device <bondname> on top of <bondslaves>.
+ <bondslaves> is a comma-separated list of physical (ethernet) interfaces.
+ <options> is a comma-separated list on bonding options (modinfo bonding for details)
+ in format compatible with initscripts. If <options> includes multi-valued arp_ip_target option,
+ then its values should be separated by semicolon.
+ Bond without parameters assumes bond=bond0:eth0,eth1:mode=balance-rr
+
+
NFS
~~~
**root=**[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 4/8] Add doc for birdge= cmdline
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-05-29 9:00 ` [PATCH 2/8] Add doc for vlan= cmdline Cong Wang
2012-05-29 9:00 ` [PATCH 3/8] Add doc for bond= cmdline Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 5/8] Remove netroot check in cmdline parsing code Cong Wang
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Document bridge= cmdline in dracut.cmdline(7).
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut.cmdline.7.asc | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
index 79a4577..c131f1c 100644
--- a/dracut.cmdline.7.asc
+++ b/dracut.cmdline.7.asc
@@ -317,6 +317,9 @@ auto6::: do IPv6 autoconfiguration
then its values should be separated by semicolon.
Bond without parameters assumes bond=bond0:eth0,eth1:mode=balance-rr
+**bridge=_<bridgename>_:_<ethname>_**::
+ Setup bridge <bridgename> with <ethname>. Bridge without parameters assumes bridge=br0:eth0
+
NFS
~~~
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 5/8] Remove netroot check in cmdline parsing code
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
` (2 preceding siblings ...)
2012-05-29 9:00 ` [PATCH 4/8] Add doc for birdge= cmdline Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 6/8] Do not use ifenslave Cong Wang
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Relax the rules for kdump, we don't specify netroot in kdump.
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
modules.d/40network/parse-bond.sh | 3 ---
modules.d/40network/parse-bridge.sh | 3 ---
modules.d/40network/parse-vlan.sh | 3 ---
3 files changed, 0 insertions(+), 9 deletions(-)
diff --git a/modules.d/40network/parse-bond.sh b/modules.d/40network/parse-bond.sh
index ae0ae97..5822685 100755
--- a/modules.d/40network/parse-bond.sh
+++ b/modules.d/40network/parse-bond.sh
@@ -15,9 +15,6 @@
# Check if bond parameter is valid
if getarg bond= >/dev/null ; then
- if [ -z "$netroot" ] ; then
- die "No netboot configured, bond is invalid"
- fi
command -v ifenslave >/dev/null 2>&1 || die "No 'ifenslave' installed"
fi
diff --git a/modules.d/40network/parse-bridge.sh b/modules.d/40network/parse-bridge.sh
index aaa5a54..6e1fee1 100755
--- a/modules.d/40network/parse-bridge.sh
+++ b/modules.d/40network/parse-bridge.sh
@@ -13,9 +13,6 @@
# Check if bridge parameter is valid
if getarg bridge= >/dev/null ; then
- if [ -z "$netroot" ] ; then
- die "No netboot configured, bridge is invalid"
- fi
command -v brctl >/dev/null 2>&1 || die "No 'brctl' installed"
fi
diff --git a/modules.d/40network/parse-vlan.sh b/modules.d/40network/parse-vlan.sh
index 60b09d8..3ba2289 100644
--- a/modules.d/40network/parse-vlan.sh
+++ b/modules.d/40network/parse-vlan.sh
@@ -9,9 +9,6 @@
# Check if vlan parameter is valid
if getarg vlan= >/dev/null ; then
- if [ -z "$netroot" ] ; then
- die "No netboot configured, vlan is invalid"
- fi
:
fi
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 6/8] Do not use ifenslave
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
` (3 preceding siblings ...)
2012-05-29 9:00 ` [PATCH 5/8] Remove netroot check in cmdline parsing code Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 7/8] Update the documentation of ifname= cmdline Cong Wang
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
ifenslave is an old tool, and could be dropped,
we can use the /sys interface.
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
modules.d/40network/ifup.sh | 2 +-
modules.d/40network/module-setup.sh | 2 +-
modules.d/40network/parse-bond.sh | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
index c03838f..1aaa1a8 100755
--- a/modules.d/40network/ifup.sh
+++ b/modules.d/40network/ifup.sh
@@ -156,7 +156,7 @@ if [ -e /tmp/bond.info ]; then
for slave in $bondslaves ; do
ip link set $slave down
- ifenslave $bondname $slave
+ echo "+$slave" > /sys/class/net/$bondname/bonding/slaves
ip link set $slave up
wait_for_if_up $slave
done
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index f28286c..da58521 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -75,7 +75,7 @@ installkernel() {
install() {
local _arch _i _dir
dracut_install ip arping tr dhclient
- dracut_install -o brctl ifenslave
+ dracut_install -o brctl
inst "$moddir/ifup.sh" "/sbin/ifup"
inst "$moddir/netroot.sh" "/sbin/netroot"
inst "$moddir/dhclient-script.sh" "/sbin/dhclient-script"
diff --git a/modules.d/40network/parse-bond.sh b/modules.d/40network/parse-bond.sh
index 5822685..933ad27 100755
--- a/modules.d/40network/parse-bond.sh
+++ b/modules.d/40network/parse-bond.sh
@@ -15,7 +15,7 @@
# Check if bond parameter is valid
if getarg bond= >/dev/null ; then
- command -v ifenslave >/dev/null 2>&1 || die "No 'ifenslave' installed"
+ :
fi
# We translate list of slaves to space-separated here to mwke it easier to loop over them in ifup
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 7/8] Update the documentation of ifname= cmdline
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
` (4 preceding siblings ...)
2012-05-29 9:00 ` [PATCH 6/8] Do not use ifenslave Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:00 ` [PATCH 8/8] Remove rd.neednet cmdline Cong Wang
2012-05-29 9:19 ` [PATCH 1/8] Add vlan support in network module Harald Hoyer
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
The documentation about ifname= needs to update.
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut.cmdline.7.asc | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
index c131f1c..0c61069 100644
--- a/dracut.cmdline.7.asc
+++ b/dracut.cmdline.7.asc
@@ -288,8 +288,10 @@ auto6::: do IPv6 autoconfiguration
**ifname=**_<interface>_:_<MAC>_::
Assign network device name <interface> (ie eth0) to the NIC with MAC <MAC>.
Note: If you use this option you _must_ specify an ifname= argument for all
- interfaces used in ip= or fcoe= arguments. This parameter can be specified
- multiple times.
+ interfaces used in ip= or fcoe= arguments. However, if the interface in
+ ip= or fcoe= is a bridge, bonding or vlan interface, you should specify
+ an ifname= for _each_ of its underlying interfaces. This parameter can be
+ specified multiple times.
**bootdev=**_<interface>_::
specify network interface to use routing and netroot information from.
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* [PATCH 8/8] Remove rd.neednet cmdline
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
` (5 preceding siblings ...)
2012-05-29 9:00 ` [PATCH 7/8] Update the documentation of ifname= cmdline Cong Wang
@ 2012-05-29 9:00 ` Cong Wang
2012-05-29 9:19 ` [PATCH 1/8] Add vlan support in network module Harald Hoyer
7 siblings, 0 replies; 9+ messages in thread
From: Cong Wang @ 2012-05-29 9:00 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Cc: Cong Wang, Harald Hoyer, Dave Young, Vivek Goyal
From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
rd.neednet could be removed, as we can check /tmp/net.ifaces.
After this patch, kdump can bring up the NIC without
rd.neednet.
Cc: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Dave Young <dyoung-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Cc: Vivek Goyal <vgoyal-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
dracut.cmdline.7.asc | 3 ---
modules.d/40network/net-genrules.sh | 2 +-
modules.d/90livenet/parse-livenet.sh | 2 +-
3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
index 0c61069..dcdbbce 100644
--- a/dracut.cmdline.7.asc
+++ b/dracut.cmdline.7.asc
@@ -303,9 +303,6 @@ auto6::: do IPv6 autoconfiguration
**biosdevname=0**::
boolean, turn off biosdevname network interface renaming
-**rd.neednet=1**::
- boolean, bring up network even without netroot set
-
**vlan=_<vlanname>_:_<phydevice>_**::
Setup vlan device named <vlanname> on <phydeivce>.
We support the four styles of vlan names: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
index 142634e..ca47b2b 100755
--- a/modules.d/40network/net-genrules.sh
+++ b/modules.d/40network/net-genrules.sh
@@ -14,7 +14,7 @@ fix_bootif() {
}
# Don't continue if we don't need network
-[ -z "$netroot" ] && ! getargbool 0 rd.neednet && return;
+[ -z "$netroot" ] && ! [ -e "/tmp/net.ifaces" ] && return;
# Write udev rules
{
diff --git a/modules.d/90livenet/parse-livenet.sh b/modules.d/90livenet/parse-livenet.sh
index d1eb474..365eca1 100755
--- a/modules.d/90livenet/parse-livenet.sh
+++ b/modules.d/90livenet/parse-livenet.sh
@@ -10,7 +10,7 @@ updates=$(getarg live.updates=)
if [ -n "$updates" ]; then
# make sure network comes up even if we're doing a local live device
if [ -z "$netroot" ]; then
- echo "rd.neednet=1" > /etc/cmdline.d/90livenet.conf
+ echo > /tmp/net.ifaces
unset CMDLINE
fi
echo "$updates" > /tmp/liveupdates.info
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread* Re: [PATCH 1/8] Add vlan support in network module
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
` (6 preceding siblings ...)
2012-05-29 9:00 ` [PATCH 8/8] Remove rd.neednet cmdline Cong Wang
@ 2012-05-29 9:19 ` Harald Hoyer
7 siblings, 0 replies; 9+ messages in thread
From: Harald Hoyer @ 2012-05-29 9:19 UTC (permalink / raw)
To: Cong Wang
Cc: initramfs-u79uwXL29TY76Z2rM5mHXA, Cong Wang, Dave Young,
Vivek Goyal
Am 29.05.2012 11:00, schrieb Cong Wang:
> From: Cong Wang <xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Thanks.. pushed the whole series.
^ permalink raw reply [flat|nested] 9+ messages in thread