bcache-tools: don't use probe-bcache and bcache-register

This allows us not to include any additional binaries for bcache
support in initrd; just an udev rule.
This commit is contained in:
Nikolay Amiantov
2014-11-02 19:03:41 +03:00
parent c9de1ea49e
commit 92f94e901a
2 changed files with 54 additions and 2 deletions
@@ -19,10 +19,10 @@ stdenv.mkDerivation rec {
-e "/INSTALL.*initcpio\/install/d" \
-e "/INSTALL.*dracut\/module-setup.sh/d" \
-i Makefile
sed -e "s|/sbin/modprobe|${kmod}/sbin/modprobe|" -i bcache-register
'';
patches = [ ./bcache-udev-modern.patch ];
preBuild = ''
export makeFlags="$makeFlags PREFIX=\"$out\" UDEVLIBDIR=\"$out/lib/udev/\"";
'';