disko-install: switch to xcp

This commit is contained in:
Jörg Thalheim
2025-08-25 09:53:42 +00:00
committed by Jörg Thalheim
parent 4073ff2f48
commit 49c1bc1b34
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -256,7 +256,7 @@ main() {
if [[ ! -f "${mountPoint}/nix/var/nix/db/db.sqlite" ]]; then
echo "Copying store paths" >&2
mkdir -p "${mountPoint}/nix/store"
xargs cp --recursive --target "${mountPoint}/nix/store" < "${closure_info}/store-paths"
xargs xcp --recursive --target-directory "${mountPoint}/nix/store" < "${closure_info}/store-paths"
echo "Loading nix database" >&2
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
fi
+2
View File
@@ -9,6 +9,7 @@
binlore,
diskoVersion,
stdenv,
xcp,
}:
let
@@ -49,6 +50,7 @@ let
[
nix
coreutils
xcp
]
++ lib.optional (!stdenv.isDarwin) nixos-install-tools
)