@John:
If you mean /sbin/ramfsinit, it doesn't exist until provided by a.n.other
package or by the developer under $ROOT/files - it's just a hook. I have an
example I wrote and tested that mounts external usb storage and switches root
but it isn't neccesarily up to fully generalised use.
If you
Hi
On 23/08/2014 22:46, Stephen Parry wrote:
> +if [ -e /bin/ramfsinit ]; then + exec /bin/ramfsinit +fi +if [ -e
> /sbin/ramfsinit ]; then + exec /sbin/ramfsinit +fi
i cannot find either of these files inside the tree. where do they
come from ?
John
_
* Stephen Parry [24.08.2014 08:28]:
> +if [ -e /bin/ramfsinit ]; then
> + exec /bin/ramfsinit
> +fi
better use:
elif [ -e /sbin/ramfsinit ]; then
> +if [ -e /sbin/ramfsinit ]; then
> + exec /sbin/ramfsinit
> +fi
bye, bastian
___
openwrt-devel
/init is the first pid 1 process in an initramfs environment. This fix adds
lines to check for the existence of /bin/ramfsinit or /sbin/ramfsinit and exec
if present. This allows packages to switch root early in the boot process. This
will help support booting or kexecing from external storage and