disko/tests/bcachefs.nix

17 lines
431 B
Nix
Raw Normal View History

{ pkgs ? import <nixpkgs> { }
, diskoLib ? pkgs.callPackage ../lib { }
2022-12-29 17:46:31 +00:00
}:
diskoLib.testLib.makeDiskoTest {
inherit pkgs;
2023-02-21 16:19:39 +00:00
name = "bcachefs";
2022-12-29 17:46:31 +00:00
disko-config = ../example/bcachefs.nix;
extraTestScript = ''
machine.succeed("mountpoint /");
machine.succeed("lsblk >&2");
'';
# so that the installer boots with a bcachefs enabled kernel
extraInstallerConfig = {
2022-12-29 17:46:31 +00:00
boot.supportedFilesystems = [ "bcachefs" ];
};
}