]> git.pld-linux.org Git - projects/geninitrd.git/blobdiff - mod-dmraid.sh
Timeout here is not a good idea. rootfs cannot be mounted and kernel oopses due to...
[projects/geninitrd.git] / mod-dmraid.sh
index 42917206ad27507deb540ee1a169ac0c5b42d9c3..2663a5b2683c1d62a16c7de3a9d34a8e29a7b892 100644 (file)
@@ -1,5 +1,4 @@
 #!/bin/sh
-#
 # geninitrd mod: dmraid
 USE_DMRAID=${USE_DMRAID:-yes}
 
@@ -67,6 +66,10 @@ find_modules_dmraid() {
 # generate initrd fragment for dmraid
 # @access      public
 initrd_gen_dmraid() {
+       if ! is_yes "$have_dmraid"; then
+               return
+       fi
+
        inst_d /sbin
        inst_exec $dmraid /sbin/dmraid
 
This page took 0.2067 seconds and 4 git commands to generate.