🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #44

Re: Reason for shipping busybox?

#44
From: Michel Verdier
Date: Thu, 08 Oct 2026 21:40
25 lines
2896 bytes
On 2026-10-08, Robert Heller wrote:

> And typically it is build as a *static* executable, with no shared library
> dependices, which makes it useful as the "shell" used in init ramdisk images

Perhaps you check busybox-static. For busybox it is only almost static :)
I have:

# dpkg -l busybox busybox-static
[...]
ii  busybox        1:1.37.0-6+b9 amd64        Tiny utilities for small and embedded systems
un  busybox-static <none>        <none>       (no description available)
# file /usr/bin/busybox
/usr/bin/busybox: ELF 64-bit LSB pie executable, [...]
# ldd /usr/bin/busybox
	linux-vdso.so.1 (0x00007f29ab199000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f29ab095000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f29aaea1000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f29ab19b000)

But as you said it is useful in initrd due to its small size and number
of libraries:

# ls -l /usr/bin/busybox
-rwxr-xr-x 1 root root 826128 12 juil. 19:12 /usr/bin/busybox
Technical Details
Message-ID: <NM40h-4kZw-11@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NLTHz-4fDR-9@gated-at.bofh.it> <NLU0V-4fL9-1@gated-at.bofh.it> <NLYxz-4i6A-5@gated-at.bofh.it> <NLYHf-4iaw-7@gated-at.bofh.it> <NM12p-4jtB-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Michel Verdier <listes@verdier.net>
Newsgroups: linux.debian.user
Subject: Re: Reason for shipping busybox?
Date: Thu, 08 Oct 2026 23:40:01 +0200
Message-ID: <NM40h-4kZw-11@gated-at.bofh.it>
References: <NLTHz-4fDR-9@gated-at.bofh.it> <NLU0V-4fL9-1@gated-at.bofh.it> <NLYxz-4i6A-5@gated-at.bofh.it> <NLYHf-4iaw-7@gated-at.bofh.it> <NM12p-4jtB-5@gated-at.bofh.it>
X-Original-To: debian-user@lists.debian.org
X-Mailbox-Line: From debian-user-request@lists.debian.org  Thu Oct  8 21:32:59 2026
Old-Return-Path: <listes@verdier.net>
X-Amavis-Spam-Status: No, score=-2.1 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1] autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -4.6
User-Agent: Gnus
Mail-Copies-To: never
MIME-Version: 1.0
Content-Type: text/plain
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832301
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/877bjrop34.fsf@verdier.net
Approved: robomod@news.nic.it
Lines: 25
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Thu, 08 Oct 2026 23:32:47 +0200
X-Original-Message-ID: <877bjrop34.fsf@verdier.net>
X-Original-References: <179145523043.7.6135217841815416674.1678042349@aleeas.com>
	<asd3DAnOBwXIO9cN@tuxteam.de>
	<148c0c53-eae8-d44a-4fc4-91b1d79285cd@touchtonecorp.com>
	<8bc8b339-c94c-4e38-ba29-1811a6fa1977@gitcoding.net>
	<20261008182007.EEFD64C0690@sharky5.deepsoft.com>