Skip to content

Commit bafad29

Browse files
committed
make-disk-image: also use xcp
1 parent 49c1bc1 commit bafad29

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
@@ -92,6 +92,7 @@ let
9292
util-linux
9393
findutils
9494
kmod
95+
xcp
9596
]
9697
++ cfg.extraDependencies;
9798
preVM = ''
@@ -143,7 +144,7 @@ let
143144
144145
# We copy files with cp because `nix copy` seems to have a large memory leak
145146
mkdir -p ${systemToInstall.config.disko.rootMountPoint}/nix/store
146-
time xargs cp --recursive --target ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
147+
xargs xcp --recursive --target-directory ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
147148
148149
${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 ""
149150
umount -Rv ${lib.escapeShellArg systemToInstall.config.disko.rootMountPoint}

0 commit comments

Comments
 (0)