]>
Commit | Line | Data |
---|---|---|
a6cc569b AM |
1 | Index: geninitrd |
2 | =================================================================== | |
c20a1e23 AM |
3 | --- geninitrd (wersja 12585) |
4 | +++ geninitrd (wersja 12612) | |
5 | @@ -332,6 +332,15 @@ | |
6 | /lib/geninitrd/extract-ikconfig /boot/vmlinuz-$kernel | |
7 | } | |
8 | ||
9 | +# @param $module | |
10 | +basename_module() { | |
11 | + local module=$1 | |
12 | + | |
13 | + module=${module##*/} | |
14 | + module=${module%$modext*} | |
15 | + echo $module | |
16 | +} | |
17 | + | |
18 | # Finds module dependencies | |
19 | # | |
20 | # @param $module | |
21 | @@ -366,9 +375,23 @@ | |
22 | warn "If $module isn't compiled in kernel then this initrd may not start your system." | |
23 | fi | |
24 | ||
25 | + local smodule | |
26 | + | |
27 | echo "$modprobe" | \ | |
28 | while read insmod modpath options; do | |
29 | - [ "$insmod" = "insmod" ] && echo $modpath | |
30 | + if [ "$insmod" = "insmod" ]; then | |
31 | + | |
32 | + # XXX: find a away to autodetect | |
33 | + smodule=$(basename_module $modpath) | |
34 | + case "$smodule" in | |
35 | + libcrc32c) | |
36 | + find_depmod "-crc32c-intel" | |
37 | + find_depmod "-crc32c" | |
38 | + ;; | |
39 | + esac | |
40 | + | |
41 | + echo $modpath | |
42 | + fi | |
43 | done | |
44 | return 0 | |
45 | } | |
46 | @@ -1445,6 +1468,7 @@ | |
cd449994 ER |
47 | else |
48 | initrd_gen_md | |
49 | initrd_gen_lvm | |
50 | + initrd_gen_blkid | |
51 | initrd_gen_luks | |
52 | initrd_gen_setrootdev | |
b10e8207 | 53 | fi |