i am trying to make a linux kernel mount /proc at boot time before running rcinit or init
do any of you know of a builtin way using some hidden magic command line parameters ?
i'd rather not write a tiny kernel module just in order to do that but i assume this is feasible and would welcome information if it happens this is required and you can save me some time. on the other hand, if it comes to that, crafting a small c program to mount /proc and run the init command seems simpler. i guess linking /etc/resolv.conf to wherever the kernel stores dhcp acquired settings would still work if /proc is mounted after the lease is acquired but have not checked... yet.
context : working with very minimal ram-based oses and trying to remove the shell part entirely. i already managed to run a linux with exactly 2 executable files : the kernel and a single program. but i am still missing a few functionnalities such as mounting /proc
EDIT: changed initially misguiding formulation : i want /proc to be mounted AFTER loading initrd and BEFORE running whatever init executable