summaryrefslogtreecommitdiff
path: root/initramfs
blob: af191cd253ce188ab5143b103782a36bf771de09 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh -e

for i in `ls /sys/dev/block/`; do
	DEV=/tmp/bcache_dev

	mknod	$DEV b `echo $i|sed -e 's/:/ /'`
	echo	$DEV > /sys/fs/bcache/register_quiet
	rm	$DEV
done