Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On the busybox site, it says that busybox can act as a shell. so that means you don't need BASH or ASH or anything similar right? Because im making a small boot floppy and i want to fit as much on as i can so it would make sense to use busybox as a shell.
but i can't find any information on how to do this?
Can someone point me in the right direction please?
busybox normally works by being called by a number of different symlinks. if you symlin kbusybox to ls then it will runs as ls, symlink it to cat and it's replicate cat... so create a symlink to it called "ash" and set that as your shell.
On the busybox site, it says that busybox can act as a shell. so that means you don't need BASH or ASH or anything similar right? Because im making a small boot floppy and i want to fit as much on as i can so it would make sense to use busybox as a shell.
You want to start busybox instead of bash. The place where bash is started varies from one distribution to another. It is usually done in a startup script in /etc. Look in /etc/inittab for the name of a runlevel script in /etc which is used to start the system. In that runlevel script you will find something that looks similar to:
/bin/bash --login
change that to something similar to:
/bin/busybox --login
It is possible that in a condensed system on a floppy that /bin/bash --login is started in /etc/inittab instead of a seperate script.
Well when i say im mking a boot disk, im making a custom distro. But i want the final thing to be small (50 - 100mb tops) but i think its pointless going through allt he work of LFS just to destroy it, so im going the other way and building it up from a boot floppy.
sorry, i meant 10mb-50mb i wanna put it on a miniCD or businessCD
Buut even still, every little counts, kb make mb.
And also, like i said, i lpan on making a book floppy first and then building it up, so in the first stages, its going to be 1.44mb tops...which i think justifies busybox
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.