External commands not found in initramfs
Gilles Espinasse
g.esp at free.fr
Tue Feb 17 13:29:17 UTC 2009
Selon michael <michael at araneidae.co.uk>:
> On Tue, 17 Feb 2009, Pedro Aguilar wrote:
> > After loading the initramfs, I have some external commands (not part of
> > busybox) that I want to execute, but I'm getting the following error:
> >
> > # /usr/bin/my_command
> > sh: /usr/bin/my_command: not found
> >
> > I'm sure the commands are inside the initramfs :)
> >
> > Do you have any idea of what it is causing this behaviour?
> > Am I missing something?
>
> One possibility which has bitten me: is it possible that some of the
> libraries needed by my_command are missing? That seems to be the loader's
> friendly way of saying "some random important file not found"!
Possibily. I think I had that once.
Check the dependencies with
readelf -d <path-of-my-command> | grep NEEDED
Check too if the file is executable.
Gilles
More information about the busybox
mailing list