Skip to content

Commit 88186d8

Browse files
committed
make-disk-image: also use xcp
1 parent 6e89b49 commit 88186d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/make-disk-image.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ let
4646
util-linux
4747
findutils
4848
kmod
49+
xcp
4950
] ++ cfg.extraDependencies;
5051
preVM = ''
5152
# shellcheck disable=SC2154
@@ -93,7 +94,7 @@ let
9394
9495
# We copy files with cp because `nix copy` seems to have a large memory leak
9596
mkdir -p ${systemToInstall.config.disko.rootMountPoint}/nix/store
96-
time xargs cp --recursive --target ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
97+
xargs xcp --recursive --target-directory ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
9798
9899
${systemToInstall.config.system.build.nixos-install}/bin/nixos-install --root ${systemToInstall.config.disko.rootMountPoint} --system ${systemToInstall.config.system.build.toplevel} --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
99100
umount -Rv ${systemToInstall.config.disko.rootMountPoint}

0 commit comments

Comments
 (0)