mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 14:03:28 +01:00
do not set networking.hostId in vm tests by default
This will conflict with the user defaults otherwise
This commit is contained in:
1 parent
4eed2457b0
commit
de50df482e
6 files changed
+7
-1
No files matched your search
@@ -101,7 +101,6 @@ let
|
|||||||
# config for tests to make them run faster or work at all
|
# config for tests to make them run faster or work at all
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
hardware.enableAllFirmware = lib.mkForce false;
|
hardware.enableAllFirmware = lib.mkForce false;
|
||||||
networking.hostId = "8425e349"; # from profiles/base.nix, needed for zfs
|
|
||||||
boot.initrd.preDeviceCommands = ''
|
boot.initrd.preDeviceCommands = ''
|
||||||
echo -n 'secretsecret' > /tmp/secret.key
|
echo -n 'secretsecret' > /tmp/secret.key
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
name = "cli";
|
name = "cli";
|
||||||
disko-config = ../example/complex.nix;
|
disko-config = ../example/complex.nix;
|
||||||
extraSystemConfig = {
|
extraSystemConfig = {
|
||||||
|
networking.hostId = "8425e349";
|
||||||
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
||||||
};
|
};
|
||||||
testMode = "direct";
|
testMode = "direct";
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
name = "complex";
|
name = "complex";
|
||||||
disko-config = ../example/complex.nix;
|
disko-config = ../example/complex.nix;
|
||||||
extraSystemConfig = {
|
extraSystemConfig = {
|
||||||
|
networking.hostId = "8425e349";
|
||||||
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
||||||
};
|
};
|
||||||
extraTestScript = ''
|
extraTestScript = ''
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
name = "module";
|
name = "module";
|
||||||
disko-config = ../example/complex.nix;
|
disko-config = ../example/complex.nix;
|
||||||
extraSystemConfig = {
|
extraSystemConfig = {
|
||||||
|
networking.hostId = "8425e349";
|
||||||
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
||||||
};
|
};
|
||||||
testMode = "module";
|
testMode = "module";
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
diskoLib.testLib.makeDiskoTest {
|
diskoLib.testLib.makeDiskoTest {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
name = "zfs-over-legacy";
|
name = "zfs-over-legacy";
|
||||||
|
extraSystemConfig = {
|
||||||
|
networking.hostId = "8425e349";
|
||||||
|
};
|
||||||
disko-config = ../example/zfs-over-legacy.nix;
|
disko-config = ../example/zfs-over-legacy.nix;
|
||||||
extraTestScript = ''
|
extraTestScript = ''
|
||||||
machine.succeed("test -e /zfs_fs");
|
machine.succeed("test -e /zfs_fs");
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ diskoLib.testLib.makeDiskoTest {
|
|||||||
name = "zfs";
|
name = "zfs";
|
||||||
disko-config = ../example/zfs.nix;
|
disko-config = ../example/zfs.nix;
|
||||||
extraSystemConfig = {
|
extraSystemConfig = {
|
||||||
|
networking.hostId = "8425e349";
|
||||||
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
fileSystems."/zfs_legacy_fs".options = [ "nofail" ]; # TODO find out why we need this!
|
||||||
};
|
};
|
||||||
extraTestScript = ''
|
extraTestScript = ''
|
||||||
|
|||||||
Reference in new issue
Block a user