X-Git-Url: http://git.scottworley.com/nixos-qemu-vm-isolation/blobdiff_plain/e4f516e113f01a72dc745e344ebba2fd234a21d8..a8cf2d3d03781108766570266abbd631e7f0a0ab:/checks/mount-grep.nix diff --git a/checks/mount-grep.nix b/checks/mount-grep.nix index 5354d26..c337b4d 100644 --- a/checks/mount-grep.nix +++ b/checks/mount-grep.nix @@ -12,6 +12,10 @@ pkgs: { imports = [ ../modules/qemu-vm-isolation.nix ]; virtualisation.qemu.isolation.nixStoreFilesystemType = "erofs"; }; + privateSquash = _: { + imports = [ ../modules/qemu-vm-isolation.nix ]; + virtualisation.qemu.isolation.nixStoreFilesystemType = "squashfs"; + }; useNixStoreImage = { virtualisation = { sharedDirectories = pkgs.lib.mkForce { }; @@ -22,13 +26,13 @@ pkgs: { testScript = '' start_all() - for machine in [shared, private, privateErofs, useNixStoreImage]: + for machine in [shared, private, privateErofs, privateSquash, useNixStoreImage]: machine.wait_for_unit("multi-user.target") shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]") shared.succeed("[[ -e ${pkgs.pv} ]]") - for machine in [private, privateErofs, useNixStoreImage]: + for machine in [private, privateErofs, privateSquash, useNixStoreImage]: machine.succeed("[[ $(mount | grep -c virt) -eq 0 ]]") machine.fail("[[ -e ${pkgs.pv} ]]") '';