Michael DeHaan wrote:
Nicholas Byrne wrote:
what distribution are you using? It might be a cpio archive or in cramfs
filesystem - start here http://wiki.openvz.org/Modifying_initrd_image
But once you've unzipped it, type "file init" to see what it is
If you want to read source, koan (http://cobbler.et.redhat.com/) has
some code to inject ks files into initrd's and covers both types already.
http://git.et.redhat.com/?p=koan.git;a=summary
Sorry, I should be more specific. Look at line 399
http://git.et.redhat.com/?p=koan.git;a=blob;f=koan/app.py;h=b57354758d55417af9534b70f6fc58962a007137;hb=1399f4ae6dd173896923b278e1540a60293f0ef7
Note: GPL'd.