Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
2013-10-08 10:37:56 +02:00
Harald Hoyer
e84d115b93
multipath: need_shutdown if multipath devices exist
...
https://bugzilla.redhat.com/show_bug.cgi?id=994913
2013-08-09 10:44:34 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
2013-06-28 10:31:18 +02:00
Harald Hoyer
1b0a362d83
multipath: install native systemd service
2013-03-25 07:58:45 +01:00
dyoung@redhat.com
83e0dc7a3d
Add for_each_host_dev_and_slaves for device only checking
...
For lvm, multipath, iscsi modules they do not care about the filesystem,
Also there could be devcie in host_devs but it does not get formated.
For these kind of modules, use for_each_host_dev_and_slaves will be better than use
for_each_host_dev_fs, here add a new function to iterate the host_devs and
their slave devices.
In original for_each_host_dev_fs, it will call check_block_and_slaves which
will return once helper function return 0, but this is not enough for kdump
iscsi setup. For kdump iscsi case, it need setup each slave devices so that
the iscsi target can be properly setuped in initramfs.
Thus, this patch also add new functions check_block_and_slaves_all and
for_each_host_dev_and_slaves_all.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: WANG Chao <chaowang@redhat.com>
2012-08-23 10:15:09 +02:00
Harald Hoyer
24a38bc1cb
fixed install locations for udev rules and change to IMPORT{builtin}
2012-07-27 11:55:31 +02:00
Harald Hoyer
15976a0670
multipath/module-setup.sh: add dm dependency
2012-07-26 12:55:53 +02:00
Amadeusz Żołnowski
15f0b1f624
90multipath: added kpartx.rules; multipath.rules - different prefix
2012-07-26 11:40:37 +02:00
Chao Wang
63c65b984a
90multipath: check() - Regexp fix to match multipath partition.
...
A multipath partition's uuid will be presented like:
# cat /sys/dev/block/$_dev/dm/uuid
part1-mpath-360060e801047103004f2c4b300000008
So in this case, change the match regexp from '^mpath-' to 'mpath-'.
Signed-off-by: Chao Wang <chaowang@redhat.com>
2012-07-26 08:35:02 +02:00
Harald Hoyer
8a240aca9e
require kpartx and partx for some modules
2012-07-25 13:00:08 +02:00
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.
2012-06-29 12:41:27 +02:00
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
2012-06-29 12:41:26 +02:00
Harald Hoyer
2d2c8c2078
multipath/module-setup.sh:installkernel() fix return code
2012-06-29 12:41:26 +02:00
Harald Hoyer
361306c131
check for arch before installing drivers/s390
2012-06-21 01:11:43 +02:00
Harald Hoyer
9073ff54c1
fix return value of some installkernel() functions
2012-06-01 17:09:51 +02:00
Harald Hoyer
5dc1be1df8
multipath/module-setup.sh: fix host-only/mount checks
2012-04-25 15:58:40 +02:00
Harald Hoyer
eef7649e71
merge "cleanup" and "pre-pivot-cleanup" hooks
2012-04-23 11:32:45 +02:00
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>
2012-04-19 11:59:45 +02:00
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"
2012-04-16 14:46:53 +02:00
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
2012-02-13 07:08:08 +01:00
Harald Hoyer
c416b1de5a
fix kernel modules search for s390
...
find_kernel_modules_by_path only takes one parameter
fixes c254ac796f
and 4fcd5409e0
2012-01-26 17:30:06 +01:00
Harald Hoyer
4fcd5409e0
iscsi/multipath: also search in drivers/s390/scsi
2012-01-23 12:35:41 +01:00
James Buren
7fffc9f11f
add xz compression for kernel modules
2012-01-23 09:59:39 +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
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
4073c8159c
add filter_kernel_modules_by_path() to speed up module search
2011-08-12 10:29:00 +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
71df3c4329
renamed module-info.sh to module-setup.sh
2011-02-02 16:35:18 +01:00
Harald Hoyer
76c4613abc
multipath: use new "-B" parameter
2011-02-02 13:56:04 +01:00
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
2011-02-02 13:56:03 +01:00
Harald Hoyer
8082a0946e
multipath/install: install the complete /etc/multipath directory
...
Resolves: rhbz#630911
2010-12-06 16:20:43 +01: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
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
6f9d69c95a
multipath: install by default, but run only if wwids are present
2010-07-20 11:23:14 +02:00
Harald Hoyer
123e24a3b5
multipath: remove multipath udev rules, if no multipath.conf was found
2010-05-27 14:34:02 +02:00
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
2010-05-27 14:19:11 +02:00
Harald Hoyer
5be225d299
use "grep" directly without "nm" to drop binutils requirement
2010-05-07 10:44:30 +02:00
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.
2010-02-25 10:24:14 -05:00
Harald Hoyer
edb511860c
Fixed: Move multipath scan earlier. It must go before any other dm rules.
...
Also changed the filename in the install file.
2010-02-12 11:00:21 +01:00
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.
2010-02-05 14:23:20 -05:00
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.
2010-01-27 16:10:43 +01:00
Harald Hoyer
c5488692d4
multipath: check for existance before trying to install
2010-01-12 10:31:51 +01:00
Harald Hoyer
938dbad1e8
multipath: supress warnings, if multipath not installed on system
2009-11-30 15:24:47 +01:00
Harald Hoyer
17ed15182a
multipath: corrected initqueue parameter
2009-11-26 11:41:53 +01:00
Peter Jones
4ee9ce444b
This has to be executable.
...
multipath-scan.sh has to be executable, of course.
2009-11-25 11:26:38 -05:00
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.
2009-11-25 11:06:35 -05:00
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.
2009-11-25 10:54:12 -05:00