make-disk-image: make generating the image more efficent

This commit is contained in:
Janik H authored and Jörg Thalheim committed 2023-11-11 16:14:15 +01:00
1 parent b6fb19891f
commit 4fec5f515c
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ let
postVM = ''
# shellcheck disable=SC2154
mkdir -p "$out"
${lib.concatMapStringsSep "\n" (disk: "cp ${disk.name}.raw \"$out\"/${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
${lib.concatMapStringsSep "\n" (disk: "mv ${disk.name}.raw \"$out\"/${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
${extraPostVM}
'';
partitioner = ''