summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-01-13 15:49:14 -0800
committerWilliam A. Kennington III <william@wkennington.com>2015-01-14 10:34:28 -0800
commit1ec68e0d13cb896525d142ab3d1980ce27fd5368 (patch)
tree2f41e9f89f538b59f27ef44b91c8ef6440872737 /pkgs/os-specific/linux/kernel
parent1b34559ff57eeccfd05e441df69fdb2b1cd81899 (diff)
downloadnixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar.gz
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar.bz2
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar.lz
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar.xz
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.tar.zst
nixpkgs-1ec68e0d13cb896525d142ab3d1980ce27fd5368.zip
kernel: Fix path to stp bridge helper
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/bridge-stp-helper.patch13
-rw-r--r--pkgs/os-specific/linux/kernel/patches.nix5
2 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/bridge-stp-helper.patch b/pkgs/os-specific/linux/kernel/bridge-stp-helper.patch
new file mode 100644
index 00000000000..70d0f944c2a
--- /dev/null
+++ b/pkgs/os-specific/linux/kernel/bridge-stp-helper.patch
@@ -0,0 +1,13 @@
+diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h
+index aea3d13..8fcbf81 100644
+--- a/net/bridge/br_private.h
++++ b/net/bridge/br_private.h
+@@ -39,7 +39,7 @@
+ #define BR_GROUPFWD_8021AD	0xB801u
+ 
+ /* Path to usermode spanning tree program */
+-#define BR_STP_PROG	"/sbin/bridge-stp"
++#define BR_STP_PROG	"/run/current-system/sw/bin/bridge-stp"
+ 
+ typedef struct bridge_id bridge_id;
+ typedef struct mac_addr mac_addr;
diff --git a/pkgs/os-specific/linux/kernel/patches.nix b/pkgs/os-specific/linux/kernel/patches.nix
index 6265a2eea18..f712d57c8f0 100644
--- a/pkgs/os-specific/linux/kernel/patches.nix
+++ b/pkgs/os-specific/linux/kernel/patches.nix
@@ -32,6 +32,11 @@ in
 
 rec {
 
+  bridge_stp_helper =
+    { name = "bridge-stp-helper";
+      patch = ./bridge-stp-helper.patch;
+    };
+
   no_xsave =
     { name = "no-xsave";
       patch = ./no-xsave.patch;