On 2018-05-04 16:16, John Paul Adrian Glaubitz wrote:
On 05/03/2018 04:30 PM, Carlos E. R. wrote:
Normally you put it in your initramfs and call for it when everything goes haywire.
I guess that would require another entry in the grub2 menu?
No, you just pass "init=/bin/busybox" and you're set.
Ah, that's it. Yes, this makes sense :-)
The whole point of busybox is to be able to provide init and minimal command line functionality with a single binary. Hence, it's being used for lots of embedded projects and some distributions like Debian actually put it into the initrd by default, so systemd can drop to a shell when the boot fails.
Yes, that is a good idea, but should be optional - some installs use a separate and small /boot partition, and having busybox there would increase initrd size notably. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)