3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/lib
Casey Ransom c3f28aed94 make-disk-image: Reduce forking
The disk image calculator was using find + exec forking du for every
file in the disk image, making it very slow. Change du to accept files,
nul delimeted on stdin to speed it back up.

Before change:
nix-build nixos/tests/image-contents.nix  9.71s user 1.06s system 8% cpu 2:13.11 total

After change:
nix-build nixos/tests/image-contents.nix  9.93s user 1.23s system 21% cpu 51.601 total
2021-06-21 22:58:07 -04:00
..
make-options-doc nixosOptionsDoc: add markdown formatting 2021-04-13 10:10:40 -07:00
test-driver nixos/tests/test-driver: cleanup nix expression 2021-06-13 15:47:51 -05:00
build-vms.nix nixosTest: Force system.nixos.revision constant 2021-06-21 11:08:26 -05:00
eval-config.nix Merge pull request #51850 from roberth/nixos-pure 2020-08-24 04:29:37 +02:00
from-env.nix
make-channel.nix
make-disk-image.nix make-disk-image: Reduce forking 2021-06-21 22:58:07 -04:00
make-ext4-fs.nix nixos/lib/make-ext4-fs: Fix: `resize2fs -M' can leave insufficient slack 2021-05-31 21:35:51 +02:00
make-iso9660-image.nix nixos: use nativeBuildInputs in make- iso9660-image and system-tarball 2020-11-18 14:05:30 +01:00
make-iso9660-image.sh make-iso9660-image: produce stable GPT disk GUID 2020-07-20 11:16:59 +02:00
make-squashfs.nix squashfs: use -no-hardlinks for reproducible squashfs images (#114454) 2021-02-28 18:03:50 +00:00
make-system-tarball.nix nixos: use nativeBuildInputs in make- iso9660-image and system-tarball 2020-11-18 14:05:30 +01:00
make-system-tarball.sh
qemu-flags.nix nixos/qemu-flags: add ppc64 2021-03-05 01:57:54 -08:00
testing-python.nix nixos/test-driver: Fix passing passthru attribute 2021-06-18 14:50:15 +02:00
utils.nix nixos/lib: Handle null device correctly 2021-06-18 08:32:45 +02:00