make-disk-image: also use xcp

This commit is contained in:
Jörg Thalheim authored and Jörg Thalheim committed 2025-08-25 09:53:42 +00:00
1 parent 49c1bc1b34
commit bafad29f89
1 file changed
+2 -1
+2 -1
View File
@@ -92,6 +92,7 @@ let
util-linux
findutils
kmod
xcp
]
++ cfg.extraDependencies;
preVM = ''
@@ -143,7 +144,7 @@ let
# We copy files with cp because `nix copy` seems to have a large memory leak
mkdir -p ${systemToInstall.config.disko.rootMountPoint}/nix/store
time xargs cp --recursive --target ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
xargs xcp --recursive --target-directory ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
${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 ""
umount -Rv ${lib.escapeShellArg systemToInstall.config.disko.rootMountPoint}