]> git.scottworley.com Git - nixos-qemu-vm-isolation/commitdiff
Check that an unreferenced package does not appear in the guest.
authorScott Worley <scottworley@scottworley.com>
Sun, 21 Nov 2021 00:16:25 +0000 (16:16 -0800)
committerScott Worley <scottworley@scottworley.com>
Mon, 20 Dec 2021 06:36:39 +0000 (22:36 -0800)
checks/mount-grep.nix

index f8fed0e2af7a8b0188379f7a25a5d66e67eeb989..5be45d722a839cbdad1e74196e41fa3bf8ceb317 100644 (file)
@@ -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} ]]")
   '';
 }