From df21f0f06d4e40f44ca9d96a97e758a9d71454c8 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Tue, 29 Dec 2009 21:23:22 +0000 Subject: [PATCH] Made a small fix because I kept receiving errors about: diff command not found. It also makes my system horribly slow. svn path=/nixos/trunk/; revision=19148 --- modules/tasks/swraid.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tasks/swraid.nix b/modules/tasks/swraid.nix index a662f06c215..dfdb9e9a34d 100644 --- a/modules/tasks/swraid.nix +++ b/modules/tasks/swraid.nix @@ -7,7 +7,7 @@ let tempConf = "/var/run/mdadm.conf"; logFile = "/var/log/mdadmEvents.log"; modprobe = config.system.sbin.modprobe; - inherit (pkgs) mdadm; + inherit (pkgs) mdadm diffutils; mdadmEventHandler = pkgs.writeScript "mdadmEventHandler.sh" '' #!/bin/sh @@ -42,7 +42,7 @@ in # Scan /proc/partitions for RAID devices. ${mdadm}/sbin/mdadm --examine --brief --scan -c partitions > ${tempConf} - if ! diff ${tempConf} ${tempConf}.old > /dev/null; then + if ! ${diffutils}/bin/diff ${tempConf} ${tempConf}.old > /dev/null; then # Activate each device found. ${mdadm}/sbin/mdadm --assemble -c ${tempConf} --scan