vendorize bcachefs kernel

This commit is contained in:
Jörg Thalheim committed 2023-01-23 10:56:51 +01:00
1 parent 825be2b627
commit eca1957835
3 files changed
+41 -2

No files matched your search

+8 -2
View File
@@ -1,6 +1,9 @@
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
let
linux-bcachefs = pkgs.callPackage ../linux-testing-bcachefs.nix {};
in
makeDiskoTest {
disko-config = ../example/bcachefs.nix;
extraTestScript = ''
@@ -12,7 +15,10 @@ makeDiskoTest {
boot.supportedFilesystems = [ "bcachefs" ];
# disable zfs so we can support latest kernel
nixpkgs.overlays = [(final: super: {
zfs = super.zfs.overrideAttrs(_: {meta.platforms = [];});}
)];
zfs = super.zfs.overrideAttrs(_: {
meta.platforms = [];
});
})];
boot.kernelPackages = pkgs.lib.mkForce (pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux-bcachefs));
};
}