Commit e0605c03 authored by Julius de Bruijn's avatar Julius de Bruijn
Browse files

bcache-tools: fix udev patch to use bash from explicit path

parent 953e8871
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ index 9cc7f0d..6a52893 100644
 LABEL="bcache_backing_found"
 RUN{builtin}+="kmod load bcache"
-RUN+="bcache-register $tempnode"
+RUN+="/bin/sh -c 'echo $tempnode > /sys/fs/bcache/register_quiet'"
+RUN+="@shell@ -c 'echo $tempnode > /sys/fs/bcache/register_quiet'"
 LABEL="bcache_backing_end"
 
 # Cached devices: symlink
+5 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, pkg-config, util-linux, bash }:
{ lib, stdenv, fetchFromGitHub, pkg-config, util-linux, bash, substituteAll }:

stdenv.mkDerivation rec {
  pname = "bcache-tools";
@@ -26,7 +26,10 @@ stdenv.mkDerivation rec {
  '';

  patches = [
    ./bcache-udev-modern.patch
    (substituteAll {
      src = ./bcache-udev-modern.patch;
      shell = "${bash}/bin/sh";
    })
    ./fix-static.patch
  ];