]> git.pld-linux.org Git - packages/geninitrd.git/blobdiff - geninitrd-svn.patch
- rel 3; crc32c handling from svn
[packages/geninitrd.git] / geninitrd-svn.patch
index 2567a694657d98529b7112f08d461833e3e4c7dd..9573f3c646b36ef0a82dd2ef8302a86a2046eefb 100644 (file)
@@ -1,8 +1,49 @@
 Index: geninitrd
 ===================================================================
---- geninitrd  (revision 12585)
-+++ geninitrd  (revision 12586)
-@@ -1445,6 +1445,7 @@
+--- geninitrd  (wersja 12585)
++++ geninitrd  (wersja 12612)
+@@ -332,6 +332,15 @@
+       /lib/geninitrd/extract-ikconfig /boot/vmlinuz-$kernel
+ }
++# @param    $module
++basename_module() {
++      local module=$1
++
++      module=${module##*/}
++      module=${module%$modext*}
++      echo $module
++}
++
+ # Finds module dependencies
+ #
+ # @param      $module
+@@ -366,9 +375,23 @@
+               warn "If $module isn't compiled in kernel then this initrd may not start your system."
+       fi
++      local smodule
++
+       echo "$modprobe" | \
+       while read insmod modpath options; do
+-              [ "$insmod" = "insmod" ] && echo $modpath
++              if [ "$insmod" = "insmod" ]; then
++
++                      # XXX: find a away to autodetect
++                      smodule=$(basename_module $modpath)
++                      case "$smodule" in
++                              libcrc32c)
++                                      find_depmod "-crc32c-intel"
++                                      find_depmod "-crc32c"
++                                      ;;
++                      esac
++
++                      echo $modpath
++              fi
+       done
+       return 0
+ }
+@@ -1445,6 +1468,7 @@
  else
        initrd_gen_md
        initrd_gen_lvm
This page took 0.028877 seconds and 4 git commands to generate.