summary refs log tree commit diff
path: root/pkgs/os-specific/linux/lvm2
diff options
context:
space:
mode:
authorajs124 <git@ajs124.de>2020-05-21 22:03:50 +0200
committerFlorian Klink <flokli@flokli.de>2020-07-12 23:04:33 +0200
commite6a6846d4fc0af05efa5bafc878ca710514798f6 (patch)
treefae925fa0aac4f674588c8d92a3f2fae361b41fa /pkgs/os-specific/linux/lvm2
parentd3a991d41028c5d2a5af2796c0bb542836457822 (diff)
downloadnixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar.gz
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar.bz2
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar.lz
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar.xz
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.tar.zst
nixpkgs-e6a6846d4fc0af05efa5bafc878ca710514798f6.zip
lvm2: fix paths to use /run instead of /var/run.
This shuts up some warnings.
Diffstat (limited to 'pkgs/os-specific/linux/lvm2')
-rw-r--r--pkgs/os-specific/linux/lvm2/default.nix10
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/lvm2/default.nix b/pkgs/os-specific/linux/lvm2/default.nix
index 5dffe04fe72..93091e04557 100644
--- a/pkgs/os-specific/linux/lvm2/default.nix
+++ b/pkgs/os-specific/linux/lvm2/default.nix
@@ -31,8 +31,14 @@ stdenv.mkDerivation rec {
     "--bindir=${placeholder "bin"}/bin"
     "--sbindir=${placeholder "bin"}/bin"
     "--libdir=${placeholder "lib"}/lib"
-  ] ++ stdenv.lib.optional enable_dmeventd " --enable-dmeventd"
-  ++ stdenv.lib.optional enable_cmdlib "--enable-cmdlib"
+    "--with-default-locking-dir=/run/lock/lvm"
+    "--with-default-run-dir=/run/lvm"
+    "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
+  ] ++ stdenv.lib.optionals enable_dmeventd [
+    "--enable-dmeventd"
+    "--with-dmeventd-pidfile=/run/dmeventd/pid"
+    "--with-default-dm-run-dir=/run/dmeventd"
+  ] ++ stdenv.lib.optional enable_cmdlib "--enable-cmdlib"
   ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
     "ac_cv_func_malloc_0_nonnull=yes"
     "ac_cv_func_realloc_0_nonnull=yes"