anchor.diff:        print STDERR "Result of the hardware scan:\n$cfg\n";
   
         $machine->copyFileFromHost(
  -          "${ config { inherit fileSystems testChannel; } }",
  +          "${ config { inherit fileSystems testChannel grubVersion; } }",
             "/mnt/etc/nixos/configuration.nix");
   
         # Perform the installation.
  
positive.code:             "''${modulesPath}/testing/test-instrumentation.nix"
            ];
  
          boot.loader.grub.version = 2;
          boot.loader.grub.device = "/dev/vda";
          boot.loader.grub.extraConfig = "serial; terminal_output.serial";
          boot.initrd.kernelModules = [ "ext3" "virtio_console" ];
  
negative.code:   # a test script fragment `createPartitions', which must create
    # partitions and filesystems, and a configuration.nix fragment
    # `fileSystems'.
    testScriptFun = { createPartitions, fileSystems, testChannel, grubVersion }:
      ''
        createDisk("harddisk", 4 * 1024);
  
  