I've created a minimal environment on my embedded ARM device consisting of just the Linux kernel, and with Busybox and a minimal filesystem in an initrd image. I have an inittab
that runs /etc/init.d/rcS
on start up.
I have the following line in rcS
:
/bin/mount -t proc none /proc
However, when this line runs, I get
/etc/init.d/rcS: line 2: /bin/mount -t proc none /proc: not found
The last line of rcS
appears to execute - that line is simply /bin/sh
to get a shell, and the shell opens automatically.
When I run the exact same mount command from the shell, it works. /bin/mount
is a symlink to /bin/busybox
.
Why isn't my script able to find /bin/mount
?