bcachefs-tools/bcache-register
Gabriel 944cb4ce32 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.
2013-04-11 17:08:23 -07:00

5 lines
103 B
Bash
Executable File

#!/bin/sh
modprobe -qba bcache
test -f /sys/fs/bcache/register && echo "$1" > /sys/fs/bcache/register