diff --git a/modules/virtualisation/virtualbox-image.nix b/modules/virtualisation/virtualbox-image.nix index 306367d0ef52..e1b6def8edb3 100644 --- a/modules/virtualisation/virtualbox-image.nix +++ b/modules/virtualisation/virtualbox-image.nix @@ -48,7 +48,8 @@ with pkgs.lib; echo "filling Nix store..." mkdir -p /mnt/nix/store - cp -prd $storePaths /mnt/nix/store/ + set -f + cp -prvd $storePaths /mnt/nix/store/ # Register the paths in the Nix database. printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \