* [PATCH 1/8] Add vlan support in network module
@ 2012-05-29 9:00 Cong Wang
[not found] ` <1338282035-14262-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 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>
This patch adds basic vlan support in network module.
The cmdline syntax for vlan is:
vlan=<vlanname>:<phydevice>
for an example:
vlan=eth0.2:eth0
or
vlan=vlan2:eth0
See also patch 2/8.
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 | 29 ++++++++++++++++++++++
modules.d/40network/module-setup.sh | 3 ++
modules.d/40network/net-genrules.sh | 5 ++++
modules.d/40network/parse-vlan.sh | 45 +++++++++++++++++++++++++++++++++++
4 files changed, 82 insertions(+), 0 deletions(-)
create mode 100644 modules.d/40network/parse-vlan.sh
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
index 71b869d..c03838f 100755
--- a/modules.d/40network/ifup.sh
+++ b/modules.d/40network/ifup.sh
@@ -40,6 +40,17 @@ if [ -e /tmp/bridge.info ]; then
fi
fi
+if [ -e /tmp/vlan.info ]; then
+ . /tmp/vlan.info
+ if [ "$netif" = "$phydevice" ]; then
+ if [ "$netif" = "$bondname" ] && [ -n "$DO_BOND_SETUP" ] ; then
+ : # We need to really setup bond (recursive call)
+ else
+ netif="$vlanname"
+ fi
+ fi
+fi
+
# disable manual ifup while netroot is set for simplifying our logic
# in netroot case we prefer netroot to bringup $netif automaticlly
[ -n "$2" -a "$2" = "-m" ] && [ -z "$netroot" ] && manualup="$2"
@@ -178,6 +189,24 @@ if [ "$netif" = "$bridgename" ] && [ ! -e /tmp/net.$bridgename.up ]; then
brctl addif $bridgename $ethname
fi
+get_vid() {
+ case "$1" in
+ vlan*)
+ return ${1#vlan}
+ ;;
+ *.*)
+ return ${1##*.}
+ ;;
+ esac
+}
+
+if [ "$netif" = "$vlanname" ] && [ ! -e /tmp/net.$vlanname.up ]; then
+ modprobe 8021q
+ ip link set "$phydevice" up
+ wait_for_if_up "$phydevice"
+ ip link add dev "$vlanname" link "$phydevice" type vlan id "$(get_vid $vlanname; echo $?)"
+fi
+
# No ip lines default to dhcp
ip=$(getarg ip)
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index d49b594..f28286c 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -68,6 +68,8 @@ installkernel() {
instmods ipv6
# bonding
instmods bonding
+ # vlan
+ instmods 8021q
}
install() {
@@ -82,6 +84,7 @@ install() {
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
inst_hook pre-udev 60 "$moddir/net-genrules.sh"
inst_hook cmdline 91 "$moddir/dhcp-root.sh"
+ inst_hook cmdline 95 "$moddir/parse-vlan.sh"
inst_hook cmdline 96 "$moddir/parse-bond.sh"
inst_hook cmdline 97 "$moddir/parse-bridge.sh"
inst_hook cmdline 98 "$moddir/parse-ip-opts.sh"
diff --git a/modules.d/40network/net-genrules.sh b/modules.d/40network/net-genrules.sh
index 7176681..142634e 100755
--- a/modules.d/40network/net-genrules.sh
+++ b/modules.d/40network/net-genrules.sh
@@ -31,6 +31,11 @@ fix_bootif() {
IFACES=${bondslaves%% *}
fi
+ if [ -e /tmp/vlan.info ]; then
+ . /tmp/vlan.info
+ IFACES=$phydevice
+ fi
+
ifup='/sbin/ifup $env{INTERFACE}'
[ -z "$netroot" ] && ifup="$ifup -m"
diff --git a/modules.d/40network/parse-vlan.sh b/modules.d/40network/parse-vlan.sh
new file mode 100644
index 0000000..60b09d8
--- /dev/null
+++ b/modules.d/40network/parse-vlan.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+# Format:
+# vlan=<vlanname>:<phydevice>
+#
+
+# return if vlan already parsed
+[ -n "$vlanname" ] && return
+
+# 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
+
+parsevlan() {
+ local v=${1}:
+ set --
+ while [ -n "$v" ]; do
+ set -- "$@" "${v%%:*}"
+ v=${v#*:}
+ done
+
+ unset vlanname phydevice
+ case $# in
+ 2) vlanname=$1; phydevice=$2 ;;
+ *) die "vlan= requires two parameters" ;;
+ esac
+}
+
+unset vlanname phydevice
+
+if getarg vlan >/dev/null; then
+ # Read vlan= parameters if they exist
+ vlan="$(getarg vlan=)"
+ if [ ! "$vlan" = "vlan" ]; then
+ parsevlan "$(getarg vlan=)"
+ fi
+
+ echo "vlanname=\"$vlanname\"" > /tmp/vlan.info
+ echo "phydevice=\"$phydevice\"" >> /tmp/vlan.info
+ return
+fi
--
1.7.7.6
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [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
end of thread, other threads:[~2012-05-29 9:19 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 9:00 [PATCH 1/8] Add vlan support in network module Cong Wang
[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 ` [PATCH 4/8] Add doc for birdge= cmdline Cong Wang
2012-05-29 9:00 ` [PATCH 5/8] Remove netroot check in cmdline parsing code Cong Wang
2012-05-29 9:00 ` [PATCH 6/8] Do not use ifenslave Cong Wang
2012-05-29 9:00 ` [PATCH 7/8] Update the documentation of ifname= cmdline 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
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.