Cong Wang [Thu, 31 May 2012 14:07:38 +0000 (22:07 +0800)]
Handle multiple underlying devices of a bridge
A bridge device with only one underlying ethernet device is almost
useless, for sure we want to support a bridge with multiple
underlying devices.
This patch adds the support by extending <ethname> in the original
bridge= cmdline to a comma-separated list of ethernet interfaces.
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Jesse Keating [Fri, 1 Jun 2012 01:41:25 +0000 (18:41 -0700)]
Don't set an already set attribute (#826357)
Depending on how the dasd_mod module was loaded, our device could have
already been marked as online or offline. We need to make the sysecho
sensitive to this and not fail if the attribute we're trying to set has
already been set.
Will Woods [Tue, 22 May 2012 22:31:07 +0000 (18:31 -0400)]
add anaconda-style option parsing to ip_to_var
Anaconda used arguments of the form:
ip=<ip> gateway=<gw> netmask=<nm>
for static IP configuration. So if we get a value for "ip" that's an IP
address, look for gateway= and netmask= and related args to fill in the
ip config vars.
Cong Wang [Tue, 29 May 2012 09:00:34 +0000 (17:00 +0800)]
Update the documentation of ifname= cmdline
The documentation about ifname= needs to update.
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:35 +0000 (17:00 +0800)]
Remove rd.neednet cmdline
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@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:33 +0000 (17:00 +0800)]
Do not use ifenslave
ifenslave is an old tool, and could be dropped,
we can use the /sys interface.
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:32 +0000 (17:00 +0800)]
Remove netroot check in cmdline parsing code
Relax the rules for kdump, we don't specify netroot in kdump.
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:31 +0000 (17:00 +0800)]
Add doc for birdge= cmdline
Document bridge= cmdline in dracut.cmdline(7).
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:30 +0000 (17:00 +0800)]
Add doc for bond= cmdline
Document bond= cmdline in dracut.cmdline(7).
Cc: Harald Hoyer <harald@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:29 +0000 (17:00 +0800)]
Add doc for vlan= cmdline
Document vlan= cmdline in dracut.cmdline(7).
Cc: Dave Young <dyoung@redhat.com> Cc: Harald Hoyer <harald@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Cong Wang [Tue, 29 May 2012 09:00:28 +0000 (17:00 +0800)]
Add vlan support in network module
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@redhat.com> Cc: Dave Young <dyoung@redhat.com> Cc: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Juan RP [Mon, 28 May 2012 14:17:28 +0000 (16:17 +0200)]
dmsquash-live: do not hardcode path to mount(8) in generated hook.
In some cases (at least in mine) mount(8) is in /usr/bin/mount and
not in /bin/mount as dmsquash-live-root.sh expects. PATH is set to
/usr/bin:/usr/sbin:/sbin:/bin in that script anyway.
Jesse Keating [Tue, 15 May 2012 20:42:47 +0000 (13:42 -0700)]
Use the right argument for dasd module options
The legacy argument is DASD=, and the new arguments should be the same
as the arguments for populating dasd.conf. If multiple arguments are
passed we can stack them by inserting a ',' between them.
Vivek Goyal [Tue, 15 May 2012 17:36:11 +0000 (13:36 -0400)]
dracut:fstab-sys: Wait for devices specified using --mount option
dracut allows passing --mount option which mounts the specified devices.
But it does not wait for these devices to show up and mounting will fail
if devices do not show up by the time "mount" was called.
I am writing some patches to support kdump on iscsi target and I noticed
that one of the initqueue script was not called as we found the root
device and broke out of main loop.
There are two possible enancements to this patch.
- Introduce a time limited wait (rd.timeout something along the lines of
rd.retry). That will allow kdump to try to dump to a backup target if
primary targets fails to come up.
- Wait for UUID= and LABEL= to show up too. Right now kdump converts
UUID= and LABEL= to respective devices and passes /dev/* to dracut
--mount option. So I am not introducing the wait for UUID= or LABEL=
in this patch.
Cong Wang [Tue, 15 May 2012 06:19:56 +0000 (14:19 +0800)]
check kernel module existance
This patch adds check of kernel module existance and
propagate errors to upper callers.
In case of break other callers of instmods(), this patch
adds an option '-c' to it, only when "-c" is specified
we fail, otherwise, errors are ignored.
Reported-by: Dave Young <dyoung@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Cc: Harald Hoyer <harald@redhat.com>
Will Woods [Tue, 1 May 2012 18:08:33 +0000 (14:08 -0400)]
fix _getcmdline arg-duplicating bug with /etc/cmdline*
If you unset CMDLINE to make _getcmdline re-read /etc/cmdline and
/etc/cmdline.d/*, CMDLINE_ETC and CMDLINE_ETC_D would keep their
contents.
This is a serious problem if you have (e.g.) "ip=eth0:dhcp" in
/etc/cmdline.d/net.conf, because getargs ip= will return
"ip=eth0:dhcp ip=eth0:dhcp" and then parse-ip-opts.sh will die() because
you have two configurations for eth0.
Harald Hoyer [Tue, 24 Apr 2012 11:08:57 +0000 (13:08 +0200)]
ifcfg: write DNS1=... for nameserver= args (RHBZ#815369)
If you're using a static network config, you'll want to keep your
nameservers around when NM starts. Write DNS1 (and DNS2, DNS3, etc..)
into the ifcfg file.
Thanks to Mark Hamzy <hamzy@us.ibm.com>
and Will Woods <wwoods@redhat.com> for the patch.
Will Woods [Fri, 20 Apr 2012 20:20:24 +0000 (16:20 -0400)]
url-lib: don't add existing handlers multiple times
Every time url-lib gets imported we end up making the list of handlers
longer with redundant entries. That's silly - we shouldn't add items
that already exist.
Note that this means you'll have to manipulate the handler list yourself
if you want to change the position/priority of existing handlers.
Dave Young [Thu, 19 Apr 2012 04:01:36 +0000 (12:01 +0800)]
add pre-pivot-cleanup hook
Sometimes some hook script will need to be before the cleanup hook scripts
For example dhclient killing, nfs cleanup, etc. must not happen before kdump
because it will use their fuctionalities.
So here introduce a new hook pre-pivot-cleanup, all cleanup scripts will go there.
that means pre-pivot hook is splited to two hooks pre-pivot and pre-pivot-cleanup