diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-02 18:54:49 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-11-02 18:54:49 +0000 |
commit | d0c3f05c131c3cab3211a8b455ab077c8d0cfc37 (patch) | |
tree | 2196d55794bc50c5e8483d41e12131c47a390e03 /pkgs/os-specific/linux/drbd/default.nix | |
parent | 2d2ee447fb14b4f42dc6c5d3e3a9f29785967c28 (diff) |
* Apply a patch to propagate the --force flag in the legacy drbdadm to
drbdsetup. Otherwise "drbdadm primary --force" won't work as expected (the kernel will say "State change failed: Need access to UpToDate data"). svn path=/nixpkgs/trunk/; revision=30195
Diffstat (limited to 'pkgs/os-specific/linux/drbd/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/drbd/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/drbd/default.nix b/pkgs/os-specific/linux/drbd/default.nix index 40821a6e489a2..7129b685eb907 100644 --- a/pkgs/os-specific/linux/drbd/default.nix +++ b/pkgs/os-specific/linux/drbd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, flex, udev }: +{ stdenv, fetchurl, flex, udev, perl }: assert stdenv.isLinux; @@ -10,7 +10,9 @@ stdenv.mkDerivation rec { sha256 = "096njwxjpwvnl259gxq6cr6n0r6ba0h5aryvgk05hqi95jx927vg"; }; - buildInputs = [ flex ]; + patches = [ ./pass-force.patch ]; + + buildInputs = [ flex perl ]; configureFlags = "--without-distro --without-pacemaker --localstatedir=/var --sysconfdir=/etc"; |