diff options
author | Harald Hoyer <harald@redhat.com> | 2009-11-23 12:12:56 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-11-23 12:28:58 +0100 |
commit | a34a0df20709ae65927fb2d99374951a2c73345b (patch) | |
tree | 734e2504ecc8cbcd63c8a46c8ca0bd570d56dc5a /modules.d | |
parent | 5841610c7f5e16896fffb832d93d0af74a165d52 (diff) |
90dm: install more device mapper kernel modules
Diffstat (limited to 'modules.d')
-rw-r--r-- | modules.d/90dm/dm-pre-udev.sh | 2 | ||||
-rwxr-xr-x | modules.d/90dm/install | 3 | ||||
-rwxr-xr-x | modules.d/90dm/installkernel | 9 |
3 files changed, 11 insertions, 3 deletions
diff --git a/modules.d/90dm/dm-pre-udev.sh b/modules.d/90dm/dm-pre-udev.sh index 67eeb1c..8fdaeaf 100644 --- a/modules.d/90dm/dm-pre-udev.sh +++ b/modules.d/90dm/dm-pre-udev.sh @@ -1 +1 @@ -modprobe dm_mod +modprobe dm_mod diff --git a/modules.d/90dm/install b/modules.d/90dm/install index 2ec0630..ad9b3c7 100755 --- a/modules.d/90dm/install +++ b/modules.d/90dm/install @@ -1,4 +1,5 @@ #!/bin/bash -inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh" +modinfo -k $kernel dm_mod >/dev/null 2>&1 && \ + inst_hook pre-udev 30 "$moddir/dm-pre-udev.sh" diff --git a/modules.d/90dm/installkernel b/modules.d/90dm/installkernel index f970827..af51a22 100755 --- a/modules.d/90dm/installkernel +++ b/modules.d/90dm/installkernel @@ -1,2 +1,9 @@ #!/bin/bash -instmods dm_mod + +for i in \ + dm-snapshot dm-delay dm-mirror dm-mod dm-queue-length \ + dm-region-hash dm-round-robin dm-service-time dm-snapshot \ + ; do + modinfo -k $kernel $i >/dev/null 2>&1 && instmods $i +done + |