Skip to content

Commit

Permalink
interactive-vm: override forceImportRoot
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Enzime authored and mergify[bot] committed Sep 28, 2024
1 parent 67dc29b commit b709e1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/interactive-vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b709e1c

Please sign in to comment.