From f13971167ffdca32ad9a437b9a1ece74d216555b Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 19 Mar 2025 15:25:37 +0900 Subject: [PATCH] checks: ensure updating hardware config doesn't require `system` --- checks/installation-without-system/flake-module.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/checks/installation-without-system/flake-module.nix b/checks/installation-without-system/flake-module.nix index 1980f1814..1d5883ca7 100644 --- a/checks/installation-without-system/flake-module.nix +++ b/checks/installation-without-system/flake-module.nix @@ -141,11 +141,6 @@ 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"; - # fsType = "ext4"; - # }; }; nodes.installer = { modulesPath, ... }: @@ -204,6 +199,9 @@ client.succeed("cp -r ${../..} test-flake && chmod -R +w test-flake") client.fail("test -f test-flake/machines/test-install-machine-without-system/hardware-configuration.nix") client.fail("test -f test-flake/machines/test-install-machine-without-system/facter.json") + client.succeed("clan machines update-hardware-config --flake test-flake test-install-machine-without-system root@installer >&2") + client.succeed("test -f test-flake/machines/test-install-machine-without-system/facter.json") + client.succeed("rm test-flake/machines/test-install-machine-without-system/facter.json") client.succeed("clan machines install --debug --flake test-flake --yes test-install-machine-without-system --target-host root@installer --update-hardware-config nixos-facter >&2") try: installer.shutdown()