Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
mdadm: fix path to sendmail
Browse files Browse the repository at this point in the history
Without this, mdadm won't be able to send email notifications:

  $ sudo mdadm --monitor --scan --test
  sh: /nix/store/2v8jn0lxza72grcm6hciak9fpgm7xb3a-system-sendmail-1.0: Is a directory

Fixes: b074a40 ("mdadm: use shared system-sendmail")
  • Loading branch information
bjornfor committed Sep 18, 2019
1 parent 175aecb commit 6b3832a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/mdadm/default.nix
Expand Up @@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
postPatch = ''
sed -e 's@/lib/udev@''${out}/lib/udev@' \
-e 's@ -Werror @ @' \
-e 's@/usr/sbin/sendmail@${system-sendmail}@' -i Makefile
-e 's@/usr/sbin/sendmail@${system-sendmail}/bin/sendmail@' -i Makefile
sed -i \
-e 's@/usr/bin/basename@${coreutils}/bin/basename@g' \
-e 's@BINDIR/blkid@${utillinux}/bin/blkid@g' \
Expand Down

0 comments on commit 6b3832a

Please sign in to comment.