run agent containers on an ephemeral root, salvaging the old one first
hive-priv copies a stopped container's root to the agent's work dir and renames it aside before passing nspawn --ephemeral; the agent's nix state moves to the persistent profiles bind. Adds the agent-ephemeral-rootfs vm test and a module-eval case for the nix state redirect.
This commit is contained in:
parent
22522b386a
commit
81439fa710
1 changed files with 1238 additions and 39 deletions
|
|
@ -228,7 +228,13 @@
|
|||
# Tests that boot a NixOS VM and need KVM. Not `checks`, so `nix flake
|
||||
# check` and the per-PR CI job never build them;
|
||||
# `.forgejo/workflows/vm-nightly.yml` does.
|
||||
vmTests = forAllSystems ({ pkgs, ... }: import ./nix/vm-tests.nix { inherit pkgs; });
|
||||
vmTests = forAllSystems (
|
||||
{ pkgs, system, ... }:
|
||||
import ./nix/vm-tests.nix {
|
||||
inherit pkgs;
|
||||
hivePriv = self.packages.${system}.hive-priv;
|
||||
}
|
||||
);
|
||||
|
||||
checks = forAllSystems (
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue