2 name = "qemu-private-store-mount-grep";
8 private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; };
11 sharedDirectories = pkgs.lib.mkForce { };
12 useNixStoreImage = true;
19 shared.wait_for_unit("multi-user.target")
20 private.wait_for_unit("multi-user.target")
21 useNixStoreImage.wait_for_unit("multi-user.target")
23 shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]")
24 private.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
25 useNixStoreImage.succeed("[[ $(mount | grep -c virt) -eq 0 ]]")
27 shared.succeed("[[ -e ${pkgs.pv} ]]")
28 private.fail("[[ -e ${pkgs.pv} ]]")
30 # useNixStoreImage isn't ready until this works:
31 # useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]")