]>
Commit | Line | Data |
---|---|---|
0fb3685a | 1 | { lib, pkgs, ... }: { |
69619e0b SW |
2 | name = "qemu-private-store-mount-grep"; |
3 | ||
4 | nodes = { | |
5 | shared = _: { }; | |
6 | private = _: { imports = [ ../modules/qemu-vm-isolation.nix ]; }; | |
0fb3685a SW |
7 | useNixStoreImage = { |
8 | virtualisation = { | |
9 | sharedDirectories = lib.mkForce { }; | |
10 | useNixStoreImage = true; | |
11 | }; | |
12 | }; | |
69619e0b SW |
13 | }; |
14 | ||
15 | testScript = '' | |
16 | start_all() | |
17 | shared.wait_for_unit("multi-user.target") | |
18 | private.wait_for_unit("multi-user.target") | |
0fb3685a | 19 | useNixStoreImage.wait_for_unit("multi-user.target") |
69619e0b SW |
20 | |
21 | shared.succeed("[[ $(mount | grep -c virt) -gt 0 ]]") | |
22 | private.succeed("[[ $(mount | grep -c virt) -eq 0 ]]") | |
0fb3685a | 23 | useNixStoreImage.succeed("[[ $(mount | grep -c virt) -eq 0 ]]") |
e1430264 SW |
24 | |
25 | shared.succeed("[[ -e ${pkgs.pv} ]]") | |
26 | private.fail("[[ -e ${pkgs.pv} ]]") | |
0fb3685a SW |
27 | |
28 | # useNixStoreImage isn't ready until this works: | |
29 | # useNixStoreImage.fail("[[ -e ${pkgs.pv} ]]") | |
69619e0b SW |
30 | ''; |
31 | } |