• Re: Reason for shipping busybox?

    From Charles Curley@3:633/10 to All on Thursday, October 08, 2026 18:30:01
    On Thu, 8 Oct 2026 08:47:57 -0700
    "James H. H. Lampert" <jamesl@touchtonecorp.com> wrote:

    Out of morbid curiosity, what *is* "busybox"?

    Aside, of course, from the classic playpen toy.

    --
    JHHL


    The next time you want to know what a package does, run, e.g.:

    apt show busybox

    --
    Does anybody read signatures any more?

    https://charlescurley.com
    https://charlescurley.com/blog/

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Robert Heller@3:633/10 to All on Thursday, October 08, 2026 20:30:01
    At Thu, 8 Oct 2026 10:52:34 -0500 nwe <nwe@gitcoding.net> wrote:


    On 10/8/26 10:47 AM, James H. H. Lampert wrote:

    Out of morbid curiosity, what *is* "busybox"?

    Aside, of course, from the classic playpen toy.

    --
    JHHL

    from ~$ man busybox
    BusyBox combines tiny versions of many common UNIX utilities into a
    single small executable. It provides minimalist replacements for most of
    the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their
    full-featured GNU cousins; however, the options that are included
    provide the expected functionality and behave very much like their GNU counterparts.


    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
    or other extreem minimalistic Linux environments. This includes [network] appliance systems (routers, access points, etc.). IOT systems that are bit
    more than an Arduino-ish MCU system (single thread or FreeRTOS-ish multithread), but not quite up to a Raspberry Pi like system (full Linux system with a uSD card or other flash/ssd file system),


    Attachment saved: /usr/tmp/1791482636/Email/4/Attachments/OpenPGP_signature.asc (application/pgp-signature)


    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Robert Heller@3:633/10 to All on Friday, October 09, 2026 02:10:01
    At Thu, 08 Oct 2026 23:32:47 +0200 Michel Verdier <listes@verdier.net> wrote:


    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


    marchhare% dpkg-query -l busybox\* | cat Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase?d)
    ||/ Name Version Architecture Description +++-=======-===========-======-===========================
    un busybox <none> <none> (no description available)
    ii busybox-static 1:1.35.0-4+deb12u1+b1 arm64 Standalone rescue shell with tons of builtin utilities
    marchhare% ldd /bin/busybox
    not a dynamic executable
    heller has logged on pts/6 from :0 at 08-Oct-2026 20:05.
    marchhare% ls -l /bin/busybox
    -rwxr-xr-x 1 root root 1846504 May 7 16:33 /bin/busybox

    --
    Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
    Deepwoods Software -- Custom Software Services
    http://www.deepsoft.com/ -- Linux Administration Services
    heller@deepsoft.com -- Webhosting Services


    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)