mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
Use "cp" instead of "rsync" for VirtualBox image generation
Rsync appears to use a lot of memory. Fixes #266.
This commit is contained in:
parent
472aff23b7
commit
17f519e590
@ -6,7 +6,7 @@ with pkgs.lib;
|
||||
system.build.virtualBoxImage =
|
||||
pkgs.vmTools.runInLinuxVM (
|
||||
pkgs.runCommand "virtualbox-image"
|
||||
{ memSize = 2047;
|
||||
{ memSize = 512;
|
||||
preVM =
|
||||
''
|
||||
mkdir $out
|
||||
@ -45,8 +45,9 @@ with pkgs.lib;
|
||||
# Copy all paths in the closure to the filesystem.
|
||||
storePaths=$(perl ${pkgs.pathsFromGraph} /tmp/xchg/closure)
|
||||
|
||||
echo "filling Nix store..."
|
||||
mkdir -p /mnt/nix/store
|
||||
${pkgs.rsync}/bin/rsync -av $storePaths /mnt/nix/store/
|
||||
cp -prd $storePaths /mnt/nix/store/
|
||||
|
||||
# Register the paths in the Nix database.
|
||||
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
|
||||
|
Loading…
Reference in New Issue
Block a user