LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compiling directories in initramfs / initrd (https://www.linuxquestions.org/questions/linux-software-2/compiling-directories-in-initramfs-initrd-944623/)

origami-sheep 05-12-2012 01:46 PM

compiling directories in initramfs / initrd
 
hi, just a quick question: is it possible to put directories in the initial ram disk?

if so how?

and would i be able to access them normally?


thanks

TobiSGD 05-13-2012 06:59 AM

Quote:

Originally Posted by origami-sheep (Post 4676792)
hi, just a quick question: is it possible to put directories in the initial ram disk?

Yes.

Quote:

if so how?
Short answer: Decompress the initrd, modify the filesystem, compress it again. Long answer: http://www.thegeekstuff.com/2009/07/...te-initrd-img/

Quote:

and would i be able to access them normally?
Depends on what you mean with normally. The added files/folders will be accessible to programs/scripts that are running in the initrd. Once the init-scripts switch the root to the /-filesystem you will not be able to access them anymore.


All times are GMT -5. The time now is 02:59 PM.