mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
Switch to qcow2 in the interactive VM.
This commit is contained in:
1 parent
511388d837
commit
70a22d25a2
3 files changed
+8
-6
No files matched your search
@@ -30,6 +30,7 @@ let
|
||||
disko.devices = cfg_.disko.devices;
|
||||
};
|
||||
testMode = true;
|
||||
imageFormat = "qcow2";
|
||||
};
|
||||
rootDisk = {
|
||||
name = "root";
|
||||
@@ -79,8 +80,8 @@ in
|
||||
trap 'rm -rf "$tmp"' EXIT
|
||||
${lib.concatMapStringsSep "\n" (disk: ''
|
||||
${pkgs.qemu}/bin/qemu-img create -f qcow2 \
|
||||
-b ${diskoImages}/${disk.name}.raw \
|
||||
-F raw "$tmp"/${disk.name}.qcow2
|
||||
-b ${diskoImages}/${disk.name}.qcow2 \
|
||||
-F qcow2 "$tmp"/${disk.name}.qcow2
|
||||
'') disks}
|
||||
set +f
|
||||
${vm}/bin/run-*-vm
|
||||
|
||||
Reference in new issue
Block a user