I looked here Kernel boot process and I tried to understand how to run a script before
initrd filesystem removed and but after the root filesystem has been mounted (EncFS), If I understand it correctly,
/sbin/init is executed after
initrd filesystem is removed so if I'll put a script in
/etc/rc.d/ it won't have access to the
initrd filesystem, I'm looking for solution to solve this problem.
BTW, the documentation kernel initrd mentions that
/sbin/init is launched before
initrd filesystem is freed, so It is possible to add scripts to
/etc/rc.d/ and they will run before
initrd is freed?