mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
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.
This commit is contained in:
1 parent
67dc29be30
commit
b709e1cc33
1 file changed
+1
@@ -64,6 +64,7 @@ in
|
|||||||
virtualisation.qemu.drives = [ rootDisk ] ++ otherDisks;
|
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.devNodes = "/dev/disk/by-uuid"; # needed because /dev/disk/by-id is empty in qemu-vms
|
||||||
boot.zfs.forceImportAll = true;
|
boot.zfs.forceImportAll = true;
|
||||||
|
boot.zfs.forceImportRoot = lib.mkForce true;
|
||||||
|
|
||||||
system.build.vmWithDisko = hostPkgs.writers.writeDashBin "disko-vm" ''
|
system.build.vmWithDisko = hostPkgs.writers.writeDashBin "disko-vm" ''
|
||||||
set -efux
|
set -efux
|
||||||
|
|||||||
Reference in new issue
Block a user