diff options
author | Anders Kaseorg <andersk@mit.edu> | 2021-11-02 00:26:56 -0700 |
---|---|---|
committer | Anders Kaseorg <andersk@mit.edu> | 2021-11-02 00:28:58 -0700 |
commit | 513e2ef5d4e59455243f3a468aff1915c9a840b6 (patch) | |
tree | 60a00d4d6d50f1e8af7846b94966a2dcc25a49de /pkgs/tools/admin/lxd | |
parent | e544ee88fa4590df75e221e645a03fe157a99e5b (diff) |
lxd: Add upstream patch for LXC 4.0.11 compatibility
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'pkgs/tools/admin/lxd')
-rw-r--r-- | pkgs/tools/admin/lxd/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/tools/admin/lxd/default.nix b/pkgs/tools/admin/lxd/default.nix index 12ea0f7a55d06..d9ecf1e0d53f1 100644 --- a/pkgs/tools/admin/lxd/default.nix +++ b/pkgs/tools/admin/lxd/default.nix @@ -1,4 +1,4 @@ -{ lib, hwdata, pkg-config, lxc, buildGoPackage, fetchurl +{ lib, hwdata, pkg-config, lxc, buildGoPackage, fetchurl, fetchpatch , makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq, attr , squashfsTools, iproute2, iptables, ebtables, iptables-nftables-compat, libcap , dqlite, raft-canonical, sqlite-replication, udev @@ -28,6 +28,14 @@ buildGoPackage rec { sha256 = "0mxbzg8xra0qpd3g3z1b230f0519h56x4jnn09lbbqa92p5zck3f"; }; + patches = [ + # lxd/checkfeature: check whether the kernel supports core scheduling + (fetchpatch { + url = "https://github.com/lxc/lxd/commit/ba6be1043714458b29c4b37687d4f624ee421943.patch"; + sha256 = "0716129n70c6i695fyi1j8q6cls7g62vkdpcrlfrr9i324y3w1dx"; + }) + ]; + postPatch = '' substituteInPlace shared/usbid/load.go \ --replace "/usr/share/misc/usb.ids" "${hwdata}/share/hwdata/usb.ids" |