Whenever I enter into initrd prompt, I know that not every command is executed in that prompt. Can somebody tell me how I can add more commands support in that initrd prompt. It would be nice if you can provide with me some reference materials.
closed as not a real question by Gilles, Renan, Ulrich Dangel, jasonwryan, Stéphane Gimenez Sep 15 '12 at 16:11
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
This is a little bit related to my question here. In the process of finding the source of the problem I tried to understand what is being done within the initrd. My guess is that you are talking about
nash - but I was not able to find much about it.
On Ubuntu all initramfs scripts are stored in
/usr/share/initramfs-tools/. You might just add a hook or modify the init script in ramdisk, which is
/usr/share/initramfs-tools/init, and add your command.
Notice that your root fs might not get mounted then. Make sure you understand all this before modify it.
After that, re-generate ramdisk with