Harald Hoyer
d1b7efd578
40network/ifup: add "brd +" to "ip addr add"
...
Unlike "ifconfig", the "ip" command does not set a broadcast address
unless explicitly requested.
add "brd +" to make "ip" calculate the broadcast address on the fly
2011-11-15 11:54:14 +01:00
Harald Hoyer
d00f97a7db
40network: check for brctl
...
if a bridge is configured on the kernel command line and brctl is
missing call die()
2011-11-15 09:47:29 +01:00
Harald Hoyer
e2d92b5adf
*/module-setup.sh: turn off debugging for module search
...
turn off debugging for module search, because it clutters the debug log
2011-10-20 13:06:37 +02:00
Harald Hoyer
d3be5a89e5
netroot: do not die, if arping failed
2011-10-19 14:24:07 +02:00
Michal Soltys
c32bda6bb9
bash3 compat patch
...
This patch replaces:
- {var}>... redirections with functionally identical eval construct +
explicit FDs
- ^^ and ,, case modifiers with temporary shopt
This allows us to lower minimum required bash version
to at least 3.1 (with current code).
Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-10-11 09:37:01 +02:00
John Reiser
d23159a69c
dracut [PATCH]es: parallelize block_module filter and net_module_filter
...
Filtering modules requires enough work that instmods() in the
next pipeline stage was rarely busy. Parallelize the two
filters which do the most work. Also fix a filename-vs-contents
mistake in net_module_filter.
--
John Reiser, jreiser@BitWagon.com
>From f4533a2ceca52c443ddebec01eeaa35d51c39c1b Mon Sep 17 00:00:00 2001
From: John Reiser <jreiser@BitWagon.com>
Date: Tue, 13 Sep 2011 17:41:43 -0700
Subject: [PATCH 1/3] Parallelize block_module_filter
2011-09-30 09:40:49 +02:00
John Reiser
881eda695e
instmods: get filenames from stdin if no args; use it
...
Use bash "[[ string =~ pattern ]]" instead of "egrep -q".
Replace control-dominated serial fondling
for var in $(proc1); do proc2 var; done
with data-dominated parallel pipeline
proc1 | while read var; do proc2 var; done
Together this is a large savings.
[harald@redhat.com: fixed network kernel module filter]
2011-09-01 10:30:29 +02:00
Harald Hoyer
e59f58f854
use inst_simple to install non-binary files
2011-08-12 13:11:30 +02:00
Harald Hoyer
4073c8159c
add filter_kernel_modules_by_path() to speed up module search
2011-08-12 10:29:00 +02:00
Harald Hoyer
40e27f1bf0
40network/parse-bridge.sh: fixed bridge parameter parsing
2011-08-11 14:27:27 +02:00
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
2011-05-12 11:06:47 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
ba7457ee00
network/parse-ip-opts.sh: fix ifname for ibft with all args
2011-05-02 11:30:29 +02:00
Harald Hoyer
7b069d5ea7
network/net-genrules.sh: also honor rename events
2011-05-02 11:29:58 +02:00
Marian Ganisin
c34130f705
don't overwrite ifname=
...
[Harald Hoyer <harald@redhat.com>: replaced grep with strstr]
[Harald Hoyer <harald@redhat.com>: handle multiple ifname= arguments]
2011-05-02 11:28:29 +02:00
Marian Ganisin
cc8f077e9f
skip condition fixed
2011-05-02 11:28:22 +02:00
Marian Ganisin
ccacb45c52
correct module name
2011-05-02 11:28:04 +02:00
Harald Hoyer
7eb40c488c
base: s#initlog#loginit#g for consistency
2011-04-12 11:07:40 +02:00
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
2011-04-08 13:49:06 +02:00
Harald Hoyer
85323dcbb9
40network/dhcp-root.sh: s#initqueue-finished#initqueue/finished#g
2011-03-29 15:46:53 +02:00
Harald Hoyer
1489c9b1af
40network: make dhclient mandatory again
2011-03-28 17:23:06 +02:00
Amadeusz Żołnowski
86d404513f
40network: install dhclient, brctl and ifenslave optionally
...
Warning given by check() function in case if any of those binaries
doesn't exist was removed, because it's produces by "dracut_install -o"
later.
2011-03-25 16:28:28 +01:00
Amadeusz Żołnowski
d1ef3951f3
modules.d: logging functions adjusted to dracut-logger
2011-03-25 16:22:05 +01:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
2011-03-25 16:10:46 +01:00
Harald Hoyer
e86a6d390d
network: install brctl optionally
2011-03-25 15:44:00 +01:00
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
2011-03-18 18:23:44 +01:00
Harald Hoyer
b177e9133e
move all /dev/.initramfs to /dev/.run/initramfs
...
We want all "/var/run" information to live in /dev/.run, until the real
root is mounted.
Therefore we mount a tmpfs on /dev/.run, which can/will be bind/move mounted
on /var/run later on.
2011-03-10 12:40:47 +01:00
Harald Hoyer
38ba0d7a62
network: add iBFT interface configuration
...
[forward port of 0828d4c3574693ae80c217229e1bba6948dc9509]
2011-03-07 13:37:20 +01:00
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
2011-02-02 16:35:18 +01:00
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
2011-02-02 13:56:03 +01:00
Harald Hoyer
5023964844
move initlog.pipe to /dev/.initramfs
2010-11-11 11:08:40 +01:00
Pádraig Brady
c8584872be
network: don't die if gateway is down and root server is local
...
modules.d/40network/netroot: Don't arping the gateway if we don't need to
2010-10-28 17:11:34 +02:00
Harald Hoyer
57a49c6727
chmod 0755 modules.d/40network/parse-bond.sh
2010-10-18 16:20:19 +02:00
Vladislav Bogdanov
96fb9c8dd7
add bonding
...
Format:
bond=<bondname>[:<bondslaves>:[:<options>]]
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 include multi-valued arp_ip_target option, then its values
should be separated by semicolon.
bond without parameters assumes bond=bond0:eth0,eth1:balance-rr
2010-10-18 16:10:41 +02:00
Harald Hoyer
a8a949d9e5
network: kill -9 dhclient, if normal kill does not succeed
...
https://bugzilla.redhat.com/show_bug.cgi?id=583348
2010-09-23 16:26:30 +02:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Harald Hoyer
5acc508cae
fixed "use $libdir and $usrlibdir instead of ..."
2010-08-23 12:40:15 +02:00
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
2010-08-23 11:55:11 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
1c894acb42
fixed "ip=dhcp6"
2010-06-17 16:25:28 +02:00
Harald Hoyer
5f927f201d
network: strip pxelinux hardware type field from BOOTIF
2010-06-11 13:16:36 +02:00
Harald Hoyer
4eab305062
network: depend on ifcfg, if /etc/sysconfig/network-scripts exist
2010-06-10 13:52:31 +02:00
Harald Hoyer
e54a84113e
get rid of rdnetdebug
...
set PS4 and output to /dev/initlog.pipe
2010-05-19 09:38:09 +02:00
Harald Hoyer
7c0aa2a2ea
40network/ifup: be more verbose
2010-05-19 09:33:58 +02:00
Harald Hoyer
9ab1426534
40network/dhclient-script: be more verbose
2010-05-19 09:33:20 +02:00
Harald Hoyer
647035f9aa
40network/parse-ip-opts.sh: add "ip=auto6" to valid options
2010-05-19 08:29:05 +02:00
Harald Hoyer
5be225d299
use "grep" directly without "nm" to drop binutils requirement
2010-05-07 10:44:30 +02:00
Harald Hoyer
8ded2a65c0
network: correct rules for multiple nics
2010-04-16 17:59:48 +02:00
Harald Hoyer
400723054c
network: removed bogus udev rules
2010-04-16 17:59:48 +02:00