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

This commit is contained in:
Janik H 2023-09-24 01:20:23 +02:00 committed by Jörg Thalheim
parent b6fb19891f
commit 4fec5f515c

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 = ''