From 88a516855a0028bcf3de1827e5d003e3e258510f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 18 Mar 2025 13:15:16 +0100 Subject: [PATCH] work around in installation test by using newer nix version --- checks/installation-without-system/flake-module.nix | 8 ++++++++ checks/installation/flake-module.nix | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/checks/installation-without-system/flake-module.nix b/checks/installation-without-system/flake-module.nix index fb3ed7970..1980f1814 100644 --- a/checks/installation-without-system/flake-module.nix +++ b/checks/installation-without-system/flake-module.nix @@ -117,6 +117,11 @@ pkgs.bubblewrap ] ++ builtins.map (i: i.outPath) (builtins.attrValues self.inputs); closureInfo = pkgs.closureInfo { rootPaths = dependencies; }; + # with nix 2.24 we get: + # vm-test-run-test-installation> client # error: sized: unexpected end-of-file + # vm-test-run-test-installation> client # error: unexpected end-of-file + # This seems to be fixed with nix 2.26 + nixPackage = pkgs.nixVersions.nix_2_26; in { # On aarch64-linux, hangs on reboot with after installation: @@ -135,6 +140,7 @@ services.openssh.enable = true; virtualisation.diskImage = "./target.qcow2"; virtualisation.useBootLoader = true; + nix.package = nixPackage; # virtualisation.fileSystems."/" = { # device = "/dev/disk/by-label/this-is-not-real-and-will-never-be-used"; @@ -156,6 +162,7 @@ virtualisation.rootDevice = "/dev/vdb"; # both installer and target need to use the same diskImage virtualisation.diskImage = "./target.qcow2"; + nix.package = nixPackage; nix.settings = { substituters = lib.mkForce [ ]; hashed-mirrors = null; @@ -174,6 +181,7 @@ ] ++ self.packages.${pkgs.system}.clan-cli.runtimeDependencies; environment.etc."install-closure".source = "${closureInfo}/store-paths"; virtualisation.memorySize = 2048; + nix.package = nixPackage; nix.settings = { substituters = lib.mkForce [ ]; hashed-mirrors = null; diff --git a/checks/installation/flake-module.nix b/checks/installation/flake-module.nix index c16dd8b98..4b360ece9 100644 --- a/checks/installation/flake-module.nix +++ b/checks/installation/flake-module.nix @@ -98,6 +98,12 @@ pkgs.bubblewrap ] ++ builtins.map (i: i.outPath) (builtins.attrValues self.inputs); closureInfo = pkgs.closureInfo { rootPaths = dependencies; }; + + # with nix 2.24 we get: + # vm-test-run-test-installation> client # error: sized: unexpected end-of-file + # vm-test-run-test-installation> client # error: unexpected end-of-file + # This seems to be fixed with nix 2.26 + nixPackage = pkgs.nixVersions.nix_2_26; in { # On aarch64-linux, hangs on reboot with after installation: @@ -116,6 +122,7 @@ services.openssh.enable = true; virtualisation.diskImage = "./target.qcow2"; virtualisation.useBootLoader = true; + nix.package = nixPackage; # virtualisation.fileSystems."/" = { # device = "/dev/disk/by-label/this-is-not-real-and-will-never-be-used"; @@ -137,6 +144,7 @@ virtualisation.rootDevice = "/dev/vdb"; # both installer and target need to use the same diskImage virtualisation.diskImage = "./target.qcow2"; + nix.package = nixPackage; nix.settings = { substituters = lib.mkForce [ ]; hashed-mirrors = null; @@ -155,6 +163,7 @@ ] ++ self.packages.${pkgs.system}.clan-cli.runtimeDependencies; environment.etc."install-closure".source = "${closureInfo}/store-paths"; virtualisation.memorySize = 2048; + nix.package = nixPackage; nix.settings = { substituters = lib.mkForce [ ]; hashed-mirrors = null;