At Thu, 08 Oct 2026 23:32:47 +0200 Michel Verdier <[email protected]> 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
[email protected]       -- Webhosting Services


Reply via email to