What are the dependencies to install bash from source in empty partition?
What are the dependencies to install bash from source in empty partition? Linux kernel is in that partition's(/dev/sda7) /boot directory, nothing else. If I want to compile and install bash to that partition, what are the packages do I need to install there before installing bash?
The existing linux is Debian jessie here. It's in /dev/sda9. Code:
ldd /bin/bash Code:
linux-gate.so.1 (0xb778b000) |
sory, but do not really understand it. You never install anything into a partition, but into a directory (probably). The directory should belong to a filesystem, the filesystem should belong to a partition and all these things should belong to a working os. And you will install anything into this os, and into a specific directory. The dependencies of bash are to have a working os and enough space.
|
so you want to install just a kernel + bash as the ultimately minimal system? something like that?
if you use everything from debian repositories, there's no need to compile? you could manually install bash (it's really just the binary 'bash', plus documentation, which you don't strictly need). and its dependencies. on my (archlinux) system they are: readline>=6.3 glibc ncurses libncursesw.so=6-64 (this is for bash 4.3.46, on debian the dependency versions are likely different, but similarly strict i guess). |
If you want just a working minimal kernel + shell look to BusyBox.
|
Quote:
I've added this entry in grub.cfg: Code:
linux /boot/vmlinuz-4.8.0 root=/dev/sda7 ro init=/bin/bash Code:
Kernel panic, attempted to kill init! |
Quote:
Code:
linux /boot/vmlinuz-4.8.0 root=/dev/sda7 ro init=/bin/bash |
Quote:
Code:
mount /dev/sda7 /media/sda7 I've added this entry in grub.cfg: Code:
linux /boot/vmlinuz-4.8.0 root=/dev/sda7 ro init=/bin/bash Code:
Kernel panic, attempted to kill init! |
Quote:
|
bash is not a stand-alone program. It expects to be started by init and to have libraries and C runtime available.
This is what bash says it needs when running under Windows10/Ubuntu which I just loaded and am playing with now: Code:
ldd /bin/bash |
What's your goal?
|
Quote:
Code:
glibc: |
It appears to me that you're brewing a custom distro. :)
|
So you installed those libraries into /media/sda7. You need to tell bash to look for those libraries there, not in /usr/lib. So you need to use ldconfig (or something similar).
But I'm still not sure if that works. |
less than LFS?
1 Attachment(s)
Quote:
(I'm working toward like this, from NuTyX, for VBox Atom N270, but didn't dare ask ... attached is my .config based on `make tinyconfig` +IDE +a mess of essential¬ ...) |
Build your minimal Linux kernel, get it installed and running. From there you have two options:
|
All times are GMT -5. The time now is 01:40 PM. |