If I want to run something in early userspace, and I'm using initramfs, 
I believe I should do the following:

- Decompress the initramfs image generated on install.
- Copy the required app into the image's /bin or /sbin directory, along 
with any other necessary files e.g. configs in /etc.
- Add the required command to the image's init script.
- Recompress the image.
- Reboot.

However, that doesn't work for me, so I think I'm missing something. 
Let's say the command I added to the init script is /sbin/foo, and the 
foo executable is in the image's /sbin dir. When I boot, I get this message:

init: init: 9: /sbin/foo: not found

I can add /sbin/foo to rc.sysinit, and it works fine, but of course, 
that's running off the root filesystem, so I suppose it's not really 
relevant.

Any thoughts anyone?

TIA
Tom K.

_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch

Reply via email to