summaryrefslogtreecommitdiff
path: root/initramfs
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-04-11 15:33:40 -0700
committerKent Overstreet <koverstreet@google.com>2012-04-11 15:33:40 -0700
commita3d0e5bafb42e42e16e00cd5e3d8522484d5d9de (patch)
tree05ced12ade662607dcfab8c5cf68cfb77a100b31 /initramfs
parentf4c09286dd3f761310b24bc03e5ce95793a9a30c (diff)
Update initramfs probe script
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