summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-01-01 19:52:05 +0100
committerJörg Thalheim <joerg@thalheim.io>2023-01-01 19:58:17 +0100
commit13b0e42202fa3919d551e2e130098c2b14e4b745 (patch)
tree5dac5dc44ca8d05fc97224f49f1986ef33044686 /nixos/tests
parentdda48a504471e79b25d65491e1dcbeaf8e5609f5 (diff)
nixos/tests/installer: disable zfs for bcachefs tests
we are potentially testing very new kernels here, which are not supported by zfs yet.
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/installer.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 398ad8de19cf..223aac491391 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -465,8 +465,12 @@ let
'';
testSpecialisationConfig = true;
};
-
-
+ # disable zfs so we can support latest kernel if needed
+ no-zfs-module = {
+ nixpkgs.overlays = [(final: super: {
+ zfs = super.zfs.overrideAttrs(_: {meta.platforms = [];});}
+ )];
+ };
in {
# !!! `parted mkpart' seems to silently create overlapping partitions.
@@ -714,6 +718,7 @@ in {
bcachefsSimple = makeInstallerTest "bcachefs-simple" {
extraInstallerConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
+ imports = [ no-zfs-module ];
};
createPartitions = ''
@@ -737,6 +742,10 @@ in {
bcachefsEncrypted = makeInstallerTest "bcachefs-encrypted" {
extraInstallerConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
+
+ # disable zfs so we can support latest kernel if needed
+ imports = [ no-zfs-module ];
+
environment.systemPackages = with pkgs; [ keyutils ];
};
@@ -769,6 +778,9 @@ in {
bcachefsMulti = makeInstallerTest "bcachefs-multi" {
extraInstallerConfig = {
boot.supportedFilesystems = [ "bcachefs" ];
+
+ # disable zfs so we can support latest kernel if needed
+ imports = [ no-zfs-module ];
};
createPartitions = ''