Skip to content

Commit eddd86c

Browse files
committed
disko-install: switch to xcp
1 parent 4073ff2 commit eddd86c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

disko-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ main() {
256256
if [[ ! -f "${mountPoint}/nix/var/nix/db/db.sqlite" ]]; then
257257
echo "Copying store paths" >&2
258258
mkdir -p "${mountPoint}/nix/store"
259-
xargs cp --recursive --target "${mountPoint}/nix/store" < "${closure_info}/store-paths"
259+
xargs xcp --recursive --target-directory "${mountPoint}/nix/store" < "${closure_info}/store-paths"
260260
echo "Loading nix database" >&2
261261
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
262262
fi

package.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
binlore,
1010
diskoVersion,
1111
stdenv,
12+
xcp,
1213
}:
1314

1415
let
@@ -49,6 +50,7 @@ let
4950
[
5051
nix
5152
coreutils
53+
xcp
5254
]
5355
++ lib.optional (!stdenv.isDarwin) nixos-install-tools
5456
)

0 commit comments

Comments
 (0)