From: Scott Worley Date: Sun, 21 Nov 2021 00:16:25 +0000 (-0800) Subject: Check that an unreferenced package does not appear in the guest. X-Git-Url: http://git.scottworley.com/nixos-qemu-vm-isolation/commitdiff_plain/e143026408c2c00b96f43a47af0dcda3182835e4?ds=sidebyside Check that an unreferenced package does not appear in the guest. --- diff --git a/checks/mount-grep.nix b/checks/mount-grep.nix index f8fed0e..5be45d7 100644 --- a/checks/mount-grep.nix +++ b/checks/mount-grep.nix @@ -13,5 +13,8 @@ shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]") private.succeed("[[ $(mount | grep -c virt) -eq 0 ]]") + + shared.succeed("[[ -e ${pkgs.pv} ]]") + private.fail("[[ -e ${pkgs.pv} ]]") ''; }