mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 18:47:16 +03:00
make-disk-image: make generating the image more efficent
This commit is contained in:
parent
b6fb19891f
commit
4fec5f515c
@ -29,7 +29,7 @@ let
|
|||||||
postVM = ''
|
postVM = ''
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
mkdir -p "$out"
|
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}
|
${extraPostVM}
|
||||||
'';
|
'';
|
||||||
partitioner = ''
|
partitioner = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user