Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
13 years ago
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
13 years ago
Harald Hoyer
2d2c8c2078
multipath/module-setup.sh:installkernel() fix return code
13 years ago
Harald Hoyer
361306c131
check for arch before installing drivers/s390
13 years ago
Harald Hoyer
9073ff54c1
fix return value of some installkernel() functions
13 years ago
Harald Hoyer
5dc1be1df8
multipath/module-setup.sh: fix host-only/mount checks
13 years ago
Harald Hoyer
eef7649e71
merge "cleanup" and "pre-pivot-cleanup" hooks
13 years ago
Dave Young
1bd76bf981
move cleanup scripts to pre-pivot-cleanup hook
...
below cleanup scripts is moved:
40network: kill-dhclient.sh
90crypt: crypt-cleanup.sh
90multipath: multipathd-stop.sh
95iscsi: cleanup-iscsi.sh
95nfs: nfsroot-cleanup.sh
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Jon Ander Hernandez
c9143a63fe
Debian multiarch support
...
Another solution could be searching in directories found at
/etc/ld.so.conf.d/*.conf or adding a new parameter. Here is a patch
which adds a new --libdirs parameter, and also a new inst_libdir_file
function which will try to expand metacharacters on each lib
directory:
inst_libdir_file "libdevmapper-event-lvm*.so"
13 years ago
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
13 years ago
Harald Hoyer
c416b1de5a
fix kernel modules search for s390
...
find_kernel_modules_by_path only takes one parameter
fixes c254ac796f
and 4fcd5409e0
13 years ago
Harald Hoyer
4fcd5409e0
iscsi/multipath: also search in drivers/s390/scsi
13 years ago
James Buren
7fffc9f11f
add xz compression for kernel modules
13 years ago
Harald Hoyer
e2d92b5adf
*/module-setup.sh: turn off debugging for module search
...
turn off debugging for module search, because it clutters the debug log
14 years ago
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]
14 years ago
Harald Hoyer
4073c8159c
add filter_kernel_modules_by_path() to speed up module search
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
76c4613abc
multipath: use new "-B" parameter
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago
Harald Hoyer
8082a0946e
multipath/install: install the complete /etc/multipath directory
...
Resolves: rhbz#630911
14 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Harald Hoyer
6f9d69c95a
multipath: install by default, but run only if wwids are present
15 years ago
Harald Hoyer
123e24a3b5
multipath: remove multipath udev rules, if no multipath.conf was found
15 years ago
Harald Hoyer
dcdf5c8801
multipath: simplify and install wwids (rhbz 595719)
...
install /etc/multipath/wwids
With the proper 40-multipath.rules and new udev device-mapper mechanism,
we don't need the multipath scan anymore.
rhbz#595719
15 years ago
Harald Hoyer
5be225d299
use "grep" directly without "nm" to drop binutils requirement
15 years ago
Peter Jones
43f2533977
Use multipath if it's installed and being used for the root fs.
...
Don't conditionalize on hostonly; use multipath if it's installed and in
use.
15 years ago
Harald Hoyer
edb511860c
Fixed: Move multipath scan earlier. It must go before any other dm rules.
...
Also changed the filename in the install file.
15 years ago
Peter Jones
7e22ab0891
Move multipath scan earlier. It must go before any other dm rules.
...
multipath scan needs to go before lvm, or else lvm may grab the device
multipath would activate, and multipath will be unable to claim it.
15 years ago
Peter Jones
3d45f9bba9
Add a check file for multipath.
...
If multipath isn't installed, don't use it. If we're in hostonly mode,
only install the multipath module if it's used for / . Otherwise, if
the user was dumb enough to install it, they get it during bootup.
15 years ago
Harald Hoyer
c5488692d4
multipath: check for existance before trying to install
15 years ago
Harald Hoyer
938dbad1e8
multipath: supress warnings, if multipath not installed on system
15 years ago
Harald Hoyer
17ed15182a
multipath: corrected initqueue parameter
15 years ago
Peter Jones
4ee9ce444b
This has to be executable.
...
multipath-scan.sh has to be executable, of course.
15 years ago
Peter Jones
01ba5f2192
Fix missing shell variables.
...
Somehow copy+paste from one machine to the other removed all the shell
variables from this line. Oops.
15 years ago
Peter Jones
b869710aff
Bring up multipath devices that are configured in multipath.conf.
...
This brings up multipath devices which are configured in multipath.conf
as we find them.
15 years ago
Peter Jones
323428ced5
Make sure and get all the multipath related modules.
...
Install all modules that are any of:
- scsi device handler
- dm log handler
- dm path selector
- dm target
It would be nice if we could tell which log handlers and targets are
multipath related, but we really can't.
15 years ago
Peter Jones
8f99a7f6e3
Add #!/bin/bash for consistency.
...
Most install scripts seem to have it there, may as well make this one
like the rest...
15 years ago
Peter Jones
aff873923c
Use glob for libdir when installing multipath libraries.
...
Use "/lib*/" not "/lib/" so it works when they're in /lib/multipath as
well as when they're in /lib64/multipath
15 years ago
Harald Hoyer
95940758e9
multipath: install multipath kernel module
15 years ago
Harald Hoyer
bfd98ad44b
multipath: install xdr utils
15 years ago
Harald Hoyer
5f7149068e
multipath: install udev rules and helper tools
16 years ago
Harald Hoyer
978d78f7b2
add module 90multipath
16 years ago