Source: live-boot Version: 1:20170623 Severity: normal Tags: patch Hi,
The wget binary depends on many libraries. On Debian 9 (stretch) these are: libffi6, libgnutls30, libhogweed4, libidn11, libidn2-0, libnettle6, libp11-kit0, libpsl5, libtasn1-6, libunistring0. In total 8 megabytes. This increases the initramfs size a lot. To save space, use wget from busybox instead. Commit 4328832d0 that adds wget does not give a reason why busybox's wget is not used. A patch is tested and attached. -- Benjamin Drung System Developer Debian & Ubuntu Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Email: [email protected] URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Geschäftsführer: Achim Weiss, Matthias Steinberg
>From d17fb6226a7f99d98b4a39275e85f31a762868b9 Mon Sep 17 00:00:00 2001 From: Benjamin Drung <[email protected]> Date: Tue, 19 Dec 2017 16:06:58 +0100 Subject: [PATCH] Drop wget (busybox provides wget) The wget binary depends on many libraries. On Debian 9 (stretch) these are: libffi6, libgnutls30, libhogweed4, libidn11, libidn2-0, libnettle6, libp11-kit0, libpsl5, libtasn1-6, libunistring0. In total 8 megabytes. This increases the initramfs size a lot. To save space, use wget from busybox instead. Commit 4328832d0 that adds wget does not give a reason why busybox's wget is not used. --- backend/initramfs-tools/live.hook | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/initramfs-tools/live.hook b/backend/initramfs-tools/live.hook index 9af9eea..41811c3 100755 --- a/backend/initramfs-tools/live.hook +++ b/backend/initramfs-tools/live.hook @@ -139,13 +139,6 @@ then copy_exec /bin/udevadm fi -# Program: wget -if [ -x /usr/bin/wget ] -then - [ "${QUIET}" ] || echo -n " wget" - copy_exec /usr/bin/wget /bin -fi - # Program: blockdev if [ -x /sbin/blockdev ] then -- 2.14.1
