mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
18 lines
311 B
Nix
18 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 /")
|
||
|
'';
|
||
|
}
|