mirror of
https://github.com/nix-community/disko.git
synced 2026-12-04 06:53:28 +01:00
disko-install: switch to xcp
This commit is contained in:
1 parent
4073ff2f48
commit
49c1bc1b34
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -256,7 +256,7 @@ main() {
|
|||||||
if [[ ! -f "${mountPoint}/nix/var/nix/db/db.sqlite" ]]; then
|
if [[ ! -f "${mountPoint}/nix/var/nix/db/db.sqlite" ]]; then
|
||||||
echo "Copying store paths" >&2
|
echo "Copying store paths" >&2
|
||||||
mkdir -p "${mountPoint}/nix/store"
|
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
|
echo "Loading nix database" >&2
|
||||||
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
|
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
binlore,
|
binlore,
|
||||||
diskoVersion,
|
diskoVersion,
|
||||||
stdenv,
|
stdenv,
|
||||||
|
xcp,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -49,6 +50,7 @@ let
|
|||||||
[
|
[
|
||||||
nix
|
nix
|
||||||
coreutils
|
coreutils
|
||||||
|
xcp
|
||||||
]
|
]
|
||||||
++ lib.optional (!stdenv.isDarwin) nixos-install-tools
|
++ lib.optional (!stdenv.isDarwin) nixos-install-tools
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user