about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/qemu-vm-volatile-root.nix
blob: bc8fd853409dba24be69df5fa84a46530915bf19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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 /")
  '';
}