disko-install: switch to xcp
This commit is contained in:
committed by
Jörg Thalheim
parent
4073ff2f48
commit
49c1bc1b34
+1
-1
@@ -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
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
binlore,
|
||||
diskoVersion,
|
||||
stdenv,
|
||||
xcp,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -49,6 +50,7 @@ let
|
||||
[
|
||||
nix
|
||||
coreutils
|
||||
xcp
|
||||
]
|
||||
++ lib.optional (!stdenv.isDarwin) nixos-install-tools
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user