bcachefs-tools/initramfs
2012-04-11 15:33:40 -07:00

10 lines
167 B
Bash

#!/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