bcachefs support

This commit is contained in:
Jörg Thalheim 2022-12-29 18:46:31 +01:00
parent cb5748f03a
commit eca7cb9132
4 changed files with 61 additions and 3 deletions

18
tests/bcachefs.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs ? (import <nixpkgs> { })
, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest
}:
makeDiskoTest {
disko-config = ../example/bcachefs.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
machine.succeed("lsblk >&2");
'';
# so that the installer boots with a bcachefs enabled kernel
extraConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
# disable zfs so we can support latest kernel
nixpkgs.overlays = [(final: super: {
zfs = super.zfs.overrideAttrs(_: {meta.platforms = [];});}
)];
};
}