path: root/bcache-register
diff options
authorGabriel <>2013-04-11 16:44:03 +0200
committerKent Overstreet <>2013-04-11 17:08:23 -0700
commit944cb4ce32b7c8a090d6ecd36eef1946d85a8048 (patch)
tree6a446827c1aebe9c354717436b737d811f825274 /bcache-register
parent3088f201edfe5cb0ad6117d84146c0b2b84205e8 (diff)
Register devices with just udev.
This means bcache devices will be registered earlier and in all cases, not just when the rootfs fails to mount. The initramfs hook is still there to ensure the bcache module and udev rules are shipped if an initramfs is used.
Diffstat (limited to 'bcache-register')
1 files changed, 4 insertions, 0 deletions
diff --git a/bcache-register b/bcache-register
new file mode 100755
index 0000000..bf93c7f
--- /dev/null
+++ b/bcache-register
@@ -0,0 +1,4 @@
+modprobe -qba bcache
+test -f /sys/fs/bcache/register && echo "$1" > /sys/fs/bcache/register