mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
drop dependency on xcp
It's actually not faster in combination with xargs...
This commit is contained in:
1 parent
babc1554e8
commit
718565dfbb
2 files changed
+3
-8
No files matched your search
+2
-6
@@ -235,12 +235,8 @@ main() {
|
||||
if [[ ! -d "${mountPoint}/nix/store" ]]; then
|
||||
export NIX_STATE_DIR=${mountPoint}/nix/var/nix
|
||||
echo "Copying store paths" >&2
|
||||
|
||||
if [ -t 1 ]; then
|
||||
xargs -I% xcp --recursive % "${mountPoint}/nix/store" < "${closure_info}/store-paths"
|
||||
else
|
||||
xargs -I% xcp --recursive --no-progress % "${mountPoint}/nix/store" < "${closure_info}/store-paths"
|
||||
fi
|
||||
mkdir -p "${mountPoint}/nix/store"
|
||||
xargs cp --recursive --target "${mountPoint}/nix/store" < "${closure_info}/store-paths"
|
||||
echo "Loading nix database" >&2
|
||||
nix-store --load-db < "${closure_info}/registration"
|
||||
unset NIX_STATE_DIR
|
||||
|
||||
Reference in new issue
Block a user