Merge pull request #341 from nix-community/zfs-hostid

do not set networking.hostId in vm tests by default
This commit is contained in:
Jörg Thalheim 2023-09-02 18:41:18 +02:00 committed by GitHub
commit a4bf32f6f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 32 deletions

View File

@ -1,37 +1,7 @@
queue_rules:
- name: default
merge_conditions:
- check-success=Evaluate flake.nix
- check-success=check bcachefs [x86_64-linux]
- check-success=check boot-raid1 [x86_64-linux]
- check-success=check btrfs-subvolumes [x86_64-linux]
- check-success=check cli [x86_64-linux]
- check-success=check complex [x86_64-linux]
- check-success=check gpt-bios-compat [x86_64-linux]
- check-success=check hybrid [x86_64-linux]
- check-success=check hybrid-tmpfs-on-root [x86_64-linux]
- check-success=check legacy-table [x86_64-linux]
- check-success=check luks-btrfs-subvolumes [x86_64-linux]
- check-success=check luks-lvm [x86_64-linux]
- check-success=check lvm-raid [x86_64-linux]
- check-success=check lvm-sizes-sort [x86_64-linux]
- check-success=check make-disk-image [x86_64-linux]
- check-success=check make-disk-image-impure [x86_64-linux]
- check-success=check mdadm [x86_64-linux]
- check-success=check module [x86_64-linux]
- check-success=check multi-device-no-deps [x86_64-linux]
- check-success=check negative-size [x86_64-linux]
- check-success=check shellcheck [x86_64-linux]
- check-success=check simple-efi [x86_64-linux]
- check-success=check standalone [x86_64-linux]
- check-success=check swap [x86_64-linux]
- check-success=check tmpfs [x86_64-linux]
- check-success=check with-lib [x86_64-linux]
- check-success=check zfs [x86_64-linux]
- check-success=check zfs-over-legacy [x86_64-linux]
- check-success=package default [x86_64-linux]
- check-success=package disko [x86_64-linux]
- check-success=package disko-doc [x86_64-linux]
- check-success=buildbot/nix-eval
defaults:
actions:
queue:

View File

@ -101,7 +101,6 @@ let
# config for tests to make them run faster or work at all
documentation.enable = false;
hardware.enableAllFirmware = lib.mkForce false;
networking.hostId = "8425e349"; # from profiles/base.nix, needed for zfs
boot.initrd.preDeviceCommands = ''
echo -n 'secretsecret' > /tmp/secret.key
'';

View File

@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
name = "cli";
disko-config = ../example/complex.nix;
extraSystemConfig = {
networking.hostId = "8425e349";
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
fileSystems."/zfs_fs".options = [ "nofail" ]; # TODO find out why we need this!
};

View File

@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
name = "complex";
disko-config = ../example/complex.nix;
extraSystemConfig = {
networking.hostId = "8425e349";
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
fileSystems."/zfs_fs".options = [ "nofail" ]; # TODO find out why we need this!
};

View File

@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
name = "module";
disko-config = ../example/complex.nix;
extraSystemConfig = {
networking.hostId = "8425e349";
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
};
testMode = "module";

View File

@ -4,6 +4,9 @@
diskoLib.testLib.makeDiskoTest {
inherit pkgs;
name = "zfs-over-legacy";
extraSystemConfig = {
networking.hostId = "8425e349";
};
disko-config = ../example/zfs-over-legacy.nix;
extraTestScript = ''
machine.succeed("test -e /zfs_fs");

View File

@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
name = "zfs";
disko-config = ../example/zfs.nix;
extraSystemConfig = {
networking.hostId = "8425e349";
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
};
extraTestScript = ''