From b709e1cc33fcde71c7db43850a55ebe6449d0959 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Sat, 28 Sep 2024 20:05:20 +0700 Subject: [PATCH] interactive-vm: override `forceImportRoot` Some users will have `boot.zfs.forceImportRoot = false;` in their configurations which conflicts with `boot.zfs.forceImportAll = true;`, so we set it to `true` to match. --- lib/interactive-vm.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/interactive-vm.nix b/lib/interactive-vm.nix index 87513579..3a1a789d 100644 --- a/lib/interactive-vm.nix +++ b/lib/interactive-vm.nix @@ -64,6 +64,7 @@ in virtualisation.qemu.drives = [ rootDisk ] ++ otherDisks; boot.zfs.devNodes = "/dev/disk/by-uuid"; # needed because /dev/disk/by-id is empty in qemu-vms boot.zfs.forceImportAll = true; + boot.zfs.forceImportRoot = lib.mkForce true; system.build.vmWithDisko = hostPkgs.writers.writeDashBin "disko-vm" '' set -efux