From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020 Firefox/0.10.1 Description of problem: This patch (submited below) adds a little bit of modularity to mkinitrd that should make possible running custom commands in initrd stage (init or linuxrc) allowing : o mounting crypted root file system o network block device o set properties in /proc o running BIOS hack temporary hack (the ones that should be lauched at every boot) o ... Version-Release number of selected component (if applicable): mkinitrd (-4.2.9-1) How reproducible: Always Steps to Reproduce: a. apply the patch to mkinitrd extracted bz2-tarball (patch -p1 < patchfile) and install it b. it should work like before Additional info: a. apply the patch to mkinitrd extracted bz2-tarball 'patch -p1 < patchfile' and install it b. add scripts[1] to new directories /etc/mkinitrd/{pre,post}rootmount/ c. run 'mkinitrd [your args as usual]' should add your scripts and your files[3] to initrd [1] sub-scripts written in nash (only command lines not the #!/bin/nash line). If you need more commands you can include files in the initrd, see [3] [2] you cannot add comments in your sub-scripts :-(, but should be short scripts :-) [3] if you put line begining with "#include " the end of the line is considered as a file to add in the initrd
Created attachment 114033 [details] my beta version Try it if you find it useful, enjoy
The current initrd images support modular functionality, albiet using a different method than the one suggested here.