zfs: Fix systemd warning

The `zfs-share` service was trying to execute the `rm` binary, but it
was providing an invalid `/bin` path.

This should fix #8171.
This commit is contained in:
Ricardo M. Correia 2015-06-04 17:31:30 +02:00
parent f1d465f429
commit 3afae4037b

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, utillinux, nukeReferences
{ stdenv, fetchFromGitHub, autoreconfHook, utillinux, nukeReferences, coreutils
, configFile ? "all"
# Userspace dependencies
@ -46,7 +46,8 @@ stdenv.mkDerivation rec {
substituteInPlace ./etc/zfs/Makefile.am --replace "\$(sysconfdir)" "$out/etc"
substituteInPlace ./cmd/zed/Makefile.am --replace "\$(sysconfdir)" "$out/etc"
substituteInPlace ./module/Makefile.in --replace "/bin/cp" "cp"
substituteInPlace ./etc/systemd/system/zfs-share.service.in \
--replace "@bindir@/rm " "${coreutils}/bin/rm "
./autogen.sh
'';