anchor.diff:          boot.zfs.enableUnstable = enableUnstable;
   
           environment.systemPackages = [ pkgs.parted ];
  +
  +        # Setup regular fileSystems machinery to ensure forceImportAll can be
  +        # tested via the regular service units.
  +        fileSystems = lib.mkVMOverride {
  +          "/forcepool" = {
  +            device = "forcepool";
  +            fsType = "zfs";
  +            options = [ "noauto" ];
  +          };
  +        };
  +
  +        # forcepool doesn't exist at first boot, and we need to manually test
  +        # the import after tweaking the hostId.
  +        systemd.services.zfs-import-forcepool.wantedBy = lib.mkVMOverride [];
  +        systemd.targets.zfs.wantedBy = lib.mkVMOverride [];
  +        boot.zfs.forceImportAll = true;
  +        # /dev/disk/by-id doesn't get populated in the NixOS test framework
  +        boot.zfs.devNodes = "/dev/disk/by-uuid";
         };
   
         testScript = ''
  
positive.code:             "zpool destroy rpool",
              "udevadm settle",
          )
        '' + extraTest;
  
      };
  
negative.code:         maintainers = [ adisbladis ];
        };
  
        machine = { pkgs, lib, ... }: {
          virtualisation.emptyDiskImages = [ 4096 ];
          networking.hostId = "deadbeef";
          boot.kernelPackages = kernelPackage;
  