Thread View: linux.debian.user
18 messages
18 total messages
Started by mailinglist.drool895
Thu, 08 Oct 2026 10:40
Reason for shipping busybox?
Author: mailinglist.drool895
Date: Thu, 08 Oct 2026 10:40
Date: Thu, 08 Oct 2026 10:40
6 lines
3040 bytes
3040 bytes
Hi all, Is there any reason debain ships busybox by default? And any lose is functionality if I remove it? Thanks
Re: Reason for shipping busybox?
Author: tomas
Date: Thu, 08 Oct 2026 11:00
Date: Thu, 08 Oct 2026 11:00
44 lines
2729 bytes
2729 bytes
--P2OTCvZweI0daRoT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 08, 2026 at 10:27:06AM +0000, mailinglist.drool895@aleeas.com w= rote: > Hi all, >=20 > Is there any reason debain ships busybox by default? Does it? For Bookworm (12) and Trixie (13) it is listed as "optional": user@debian:~$ apt show busybox Package: busybox Version: 1:1.37.0-6+b9 Priority: optional > And any lose is functionality if I remove it? Just try :-) No, seriously: you can, for example, do an "apt-get -s purge busybox" to see what packages would go away with it. May be it was installed as a dependency of a package you would like to keep... (Option -s means "simulate", so nothing bad happens). Cheers --=20 t --P2OTCvZweI0daRoT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCasd3BQAKCRAFyCz1etHa Rh5dAJ4m971S/9BLyW2ApQDTt/RPARnEdACdFFSsPOTv9BB7/XYoCmk16TJmxhY= =weh3 -----END PGP SIGNATURE----- --P2OTCvZweI0daRoT--
Re: Reason for shipping busybox?
Author: mailinglist.drool895
Date: Thu, 08 Oct 2026 13:30
Date: Thu, 08 Oct 2026 13:30
59 lines
4577 bytes
4577 bytes
> Does it? For Bookworm (12) and Trixie (13) it is listed as "optional":
>
> user@debian:~$ apt show busybox
> Package: busybox
> Version: 1:1.37.0-6+b9
> Priority: optional
>
Yes, it does. First thing I did after new installation was
$apt list --installed >> apt/apt_mini.txt
At that point I didn't install any package, not even DE or anything. and when we search busybox in this file we get
$grep -i busybox apt/apt_mini.txt
busybox/stable,now 1:1.37.0-6+b9 amd64 [installed]
If it was dependence we would see result similar to this,
$grep -i grub2 apt/apt_mini.txt
grub2-common/stable,now 2.12-9+deb13u2 amd64 [installed,automatic]
Notice missing "automatic" part.
And according to logs (/var/log/apt/history.log) It is second package apt installed just after locales.
> > And any lose is functionality if I remove it?
>
> Just try :-)
>
> No, seriously: you can, for example, do an "apt-get -s purge busybox" to see
> what packages would go away with it. May be it was installed as a dependency
> of a package you would like to keep...
>
> (Option -s means "simulate", so nothing bad happens).
$apt purge --dry-run busybox
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
REMOVING:
busybox*
Summary:
Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0
Purg busybox [1:1.37.0-6+b9]
See not installed by any dependency. Hence the original question why ship it by default?
Thanks.
Re: Reason for shipping busybox?
Author: Greg Wooledge
Date: Thu, 08 Oct 2026 13:30
Date: Thu, 08 Oct 2026 13:30
27 lines
2675 bytes
2675 bytes
On Thu, Oct 08, 2026 at 13:15:28 +0000, mailinglist.drool895@aleeas.com wrote: > $apt purge --dry-run busybox > NOTE: This is only a simulation! > apt needs root privileges for real execution. > Keep also in mind that locking is deactivated, > so don't depend on the relevance to the real current situation! > > REMOVING: > busybox* > > Summary: > Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0 > Purg busybox [1:1.37.0-6+b9] > > > See not installed by any dependency. Hence the original question why ship it by default? hobbit:~$ lsinitramfs /boot/initrd.img-6.12.111+deb13-amd64 | grep busy usr/bin/busybox It's part of the initramfs that's created by the kernel infrastructure. Removing it would probably leave your future initrd.img* files without a functioning shell. Feel free to test this and report the results, but be aware of the possibility of not being able to boot (keep an old kernel+initrd on hand to revert to if needed).
Re: Reason for shipping busybox?
Author: Stefan Monnier
Date: Thu, 08 Oct 2026 13:50
Date: Thu, 08 Oct 2026 13:50
12 lines
2015 bytes
2015 bytes
> Is there any reason debain ships busybox by default? AFAIK it's used by the likes of `initramfs-tools` and `dracut` (it's copied into each of the `/boot/initrd.img-<VERSION>` files). > And any lose is functionality if I remove it? I'd expect a failure when (re)building those `initrd.img` files, or if you get unlucky those files will build but the subsequent boot will fail? === Stefan
Re: Reason for shipping busybox?
Author: mailinglist.drool895
Date: Thu, 08 Oct 2026 14:00
Date: Thu, 08 Oct 2026 14:00
8 lines
3455 bytes
3455 bytes
> Feel free to test this and report the results, but be aware of the > possibility of not being able to boot (keep an old kernel+initrd on hand > to revert to if needed). Yeah, I am not touching it with 3.05 meter pole. Thanks for warning. Thanks.
Re: Reason for shipping busybox?
Author: James H. H. Lampert
Date: Thu, 08 Oct 2026 15:50
Date: Thu, 08 Oct 2026 15:50
6 lines
3089 bytes
3089 bytes
Out of morbid curiosity, what *is* "busybox"? Aside, of course, from the classic playpen toy. -- JHHL
Re: Reason for shipping busybox?
Author: Charles Curley
Date: Thu, 08 Oct 2026 16:30
Date: Thu, 08 Oct 2026 16:30
20 lines
3513 bytes
3513 bytes
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/
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: mailinglist.drool895
Date: Thu, 08 Oct 2026 17:30
Date: Thu, 08 Oct 2026 17:30
8 lines
3589 bytes
3589 bytes
> Is there any reason debain ships busybox by default? > > AFAIK it's used by the likes of `initramfs-tools` and `dracut` (it's > copied into each of the `/boot/initrd.img-<VERSION>` files). > I just checked in my fedora box, It doesn't have busybox. So again why debian ships it?
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: tomas
Date: Thu, 08 Oct 2026 17:40
Date: Thu, 08 Oct 2026 17:40
35 lines
2914 bytes
2914 bytes
--sSCTjjaZgQSPHepd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 08, 2026 at 05:20:45PM +0000, mailinglist.drool895@aleeas.com w= rote: > > Is there any reason debain ships busybox by default? > >=20 > > AFAIK it's used by the likes of `initramfs-tools` and `dracut` (it's > > copied into each of the `/boot/initrd.img-<VERSION>` files). > >=20 >=20 > I just checked in my fedora box, It doesn't have busybox. So again why de= bian ships it?=20 Because Fedora's boot set up is totally different to Debian's. Fedora will ship other things it needs for early boot. Cheers --=20 t --sSCTjjaZgQSPHepd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCasfT+wAKCRAFyCz1etHa RnslAJ0RgII68vBV9YNpVnzm40xXV8E3NQCeNLT6ADMlpkgAOe/MbqzzGLqZbkM= =DD9a -----END PGP SIGNATURE----- --sSCTjjaZgQSPHepd--
Re: Reason for shipping busybox
Author: David Wright
Date: Thu, 08 Oct 2026 18:20
Date: Thu, 08 Oct 2026 18:20
27 lines
4614 bytes
4614 bytes
On Thu 08 Oct 2026 at 17:20:45 (+0000), mailinglist.drool895@aleeas.com wrote: > > Is there any reason debain ships busybox by default? > > > > AFAIK it's used by the likes of `initramfs-tools` and `dracut` (it's > > copied into each of the `/boot/initrd.img-<VERSION>` files). > > > > I just checked in my fedora box, It doesn't have busybox. So again why debian ships it? Here: $ aptitude why busybox i cryptsetup-initramfs Depends busybox | busybox-static $ aptitude why cryptsetup-initramfs i cryptsetup-suspend Depends cryptsetup-initramfs (>= 2:2.7.5-2) $ Cryptsetup provides an interface for configuring encryption on block devices (such as /home or swap partitions), using the Linux kernel device mapper target dm-crypt. It features integrated Linux Unified Key Setup (LUKS) support. . This package provides suspend mode integration for cryptsetup. It takes care of removing LUKS master key from memory before system suspend. Cheers, David.
Re: Reason for shipping busybox?
Author: Robert Heller
Date: Thu, 08 Oct 2026 18:30
Date: Thu, 08 Oct 2026 18:30
40 lines
3785 bytes
3785 bytes
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
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: Robert Heller
Date: Thu, 08 Oct 2026 18:30
Date: Thu, 08 Oct 2026 18:30
37 lines
3560 bytes
3560 bytes
On my Raspberry Pi, running Raspbian 12 (Debian 12), busybox-static is shipped because it is used by the init ramdisk build script. It is included as the "shell" in the init ramdisk. There are actually two busybox packages: 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 At Thu, 08 Oct 2026 17:20:45 +0000 mailinglist.drool895@aleeas.com wrote: > > > Is there any reason debain ships busybox by default? > > > > AFAIK it's used by the likes of `initramfs-tools` and `dracut` (it's > > copied into each of the `/boot/initrd.img-<VERSION>` files). > > > > I just checked in my fedora box, It doesn't have busybox. So again why debian ships it? > > > > -- 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
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: Greg Wooledge
Date: Thu, 08 Oct 2026 18:50
Date: Thu, 08 Oct 2026 18:50
17 lines
2877 bytes
2877 bytes
On Thu, Oct 08, 2026 at 14:20:07 -0400, Robert Heller wrote: > On my Raspberry Pi, running Raspbian 12 (Debian 12), busybox-static is shipped > because it is used by the init ramdisk build script. It is included as the > "shell" in the init ramdisk. There are actually two busybox packages: > > 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 And my non-Raspberry Trixie system has the exact opposite: ii busybox 1:1.37.0-6+b9 amd64 [...] un busybox-static <none> <none>
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: Robert Heller
Date: Thu, 08 Oct 2026 21:00
Date: Thu, 08 Oct 2026 21:00
48 lines
4456 bytes
4456 bytes
At Thu, 8 Oct 2026 14:40:12 -0400 Greg Wooledge <greg@wooledge.org> wrote:
>
> On Thu, Oct 08, 2026 at 14:20:07 -0400, Robert Heller wrote:
> > On my Raspberry Pi, running Raspbian 12 (Debian 12), busybox-static is shipped
> > because it is used by the init ramdisk build script. It is included as the
> > "shell" in the init ramdisk. There are actually two busybox packages:
> >
> > 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
>
> And my non-Raspberry Trixie system has the exact opposite:
>
> ii busybox 1:1.37.0-6+b9 amd64 [...]
> un busybox-static <none> <none>
>
Hmm, Only one busybox can be installed at a time:
marchhare% apt -s install busybox
NOTE: This is only a simulation!
apt needs root privileges for real execution.
Keep also in mind that locking is deactivated,
so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
busybox-static
The following NEW packages will be installed:
busybox
0 upgraded, 1 newly installed, 1 to remove and 1 not upgraded.
Remv busybox-static [1:1.35.0-4+deb12u1+b1]
Inst busybox (1:1.35.0-4+deb12u1+b1 Debian:12.15/oldstable [arm64])
Conf busybox (1:1.35.0-4+deb12u1+b1 Debian:12.15/oldstable [arm64])
--
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
Re: [Possible phishing attempt] Re: Reason for shipping busybox?
Author: Michel Verdier
Date: Thu, 08 Oct 2026 21:30
Date: Thu, 08 Oct 2026 21:30
8 lines
2333 bytes
2333 bytes
On 2026-10-08, Robert Heller wrote: > Hmm, Only one busybox can be installed at a time: Yes busybox is used for initrd and other generic tasks. busybox-static is used for specific tasks such as filesystem repair. A useful dicussion about this on: https://lists.debian.org/debian-devel/2026/09/msg00052.html
Re: Reason for shipping busybox?
Author: Michel Verdier
Date: Thu, 08 Oct 2026 21:40
Date: Thu, 08 Oct 2026 21:40
25 lines
2896 bytes
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
Re: Reason for shipping busybox?
Author: Robert Heller
Date: Fri, 09 Oct 2026 00:10
Date: Fri, 09 Oct 2026 00:10
50 lines
4348 bytes
4348 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads