nixpkgs-suyu/nixos/tests/qemu-vm-volatile-root.nix
2023-06-21 01:38:27 +02:00

17 lines
311 B
Nix

# Test that the root filesystem is a volatile tmpfs.
{ lib, ... }:
{
name = "qemu-vm-volatile-root";
meta.maintainers = with lib.maintainers; [ nikstur ];
nodes.machine = _: {
virtualisation.diskImage = null;
};
testScript = ''
machine.succeed("findmnt --kernel --types tmpfs /")
'';
}