External commands not found in initramfs

Pedro Aguilar paguilar at junkerhq.net
Tue Feb 17 13:04:10 UTC 2009


Hi,

I have an embbeded device with an initramfs with busybox.
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:

# my_command
sh: my_command: not found
# /usr/bin/my_command
sh: /usr/bin/my_command: not found

I'm sure the commands are inside the initramfs :)

This issue does not happen with my 'real' filesystem that contains busybox
too and that is loaded after the initramfs.

The only difference is that in the real filesystem the first thing that is
executed is busybox's /sbin/init, whilst in the initramfs is a custom
/init that calls some busybox commands (mount, echo) and my custom
commands that fail.

Do you have any idea of what it is causing this behaviour?
Am I missing something?

Thanks.

Regards,
--
Pedro Aguilar



More information about the busybox mailing list