summaryrefslogtreecommitdiff
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rw-r--r--initramfs14
1 files changed, 6 insertions, 8 deletions
diff --git a/initramfs b/initramfs
index 3815dc9..af191cd 100644
--- a/initramfs
+++ b/initramfs
@@ -1,11 +1,9 @@
#!/bin/sh -e
-case "$1" in
-prereqs)
- echo "udev"
- exit 0
- ;;
-esac
+for i in `ls /sys/dev/block/`; do
+ DEV=/tmp/bcache_dev
-cp -p /lib/udev/rules.d/61-bcache.rules $DESTDIR/lib/udev/rules.d/
-cp -p /sbin/probe-bcache $DESTDIR/sbin
+ mknod $DEV b `echo $i|sed -e 's/:/ /'`
+ echo $DEV > /sys/fs/bcache/register_quiet
+ rm $DEV
+done