summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorErik Arvstedt <erik.arvstedt@gmail.com>2022-06-07 14:05:59 +0200
committerErik Arvstedt <erik.arvstedt@gmail.com>2022-06-07 22:34:30 +0200
commit64589bcefaa6f0225327525de602f5754781583d (patch)
treebbd318e8a3388d47fca34d78c7c4ba9e9cee538c /pkgs/development/python-modules/rangehttpserver
parentc5d810f4c74c824ae0fb788103003c6c9d366a08 (diff)
nixos/netboot: use `makeInitrdNG` to shrink ramdisk size
Previously, `makeInitrd` added the whole closure of the squashfs derivation to initrd. This closure contains the squashfs.img and some store paths which are still referenced by the compressed squashfs.img. These extra store paths are unused in stage 1. With `makeInitrdNG` only the squashfs.img is added to the initrd. (`makeInitrdNG` only resolves shared library references instead of the whole closure). This shrinks the netboot ramdisk by ~6% for a minimal system and significantly decreases the size of the uncompressed root filesystem in stage 1.
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions