2 # geninitrd mod: bcache
4 # http://bcache.evilpiepirate.org/
5 USE_BCACHE=${USE_BCACHE:-yes}
7 # setup geninitrd module
10 if [ ! -d /sys/fs/bcache ]; then
14 if [ ! -x /lib/udev/bcache-register ]; then
19 # find modules for for bcache
21 find_modules_bcache() {
22 if ! is_yes "$USE_BCACHE"; then
30 # generate initrd fragment
33 if ! is_yes "$USE_BCACHE"; then
37 verbose "Adding bcache support to initrd"
39 inst_rules 69-bcache.rules
40 inst_exec /lib/udev/bcache-register /lib/udev