path: root/initramfs/hook
diff options
authorGabriel <>2013-04-11 16:44:03 +0200
committerKent Overstreet <>2013-04-11 17:08:23 -0700
commit944cb4ce32b7c8a090d6ecd36eef1946d85a8048 (patch)
tree6a446827c1aebe9c354717436b737d811f825274 /initramfs/hook
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 'initramfs/hook')
1 files changed, 3 insertions, 1 deletions
diff --git a/initramfs/hook b/initramfs/hook
index 3c429d0..ce328f3 100755
--- a/initramfs/hook
+++ b/initramfs/hook
@@ -16,5 +16,7 @@ esac
. /usr/share/initramfs-tools/hook-functions
-copy_exec /bin/mknod
+cp -pt "${DESTDIR}/lib/udev/rules.d" /lib/udev/rules.d/61-bcache.rules
+copy_exec /lib/udev/bcache-register
+copy_exec /sbin/probe-bcache
manual_add_modules bcache