Quote:
|
Originally Posted by c0nv3r9
I think you might be making it a little too difficult on yourself
* make backup copy if desired
* gunzip it
* mount it
* modify files in the mounted loop
* unmount
* gzip -9 < initrd > newinitrd
... that way you gzip the actual unmounted image and not a copied directory structure from the image. Something else that may be helpful depending on how you want to approach things, man mkinitrd... I think that's probably the script folks are referring to for rebuilding the image from your copied directory structure.
|
Yes, mkinitrd was one script but I wasn't sure it if would work on the looped filesystem or if it was intended to to work on the current kernel source. There was another script I found that would pack it similiar to mkinitrd but I was missing some dependencies. I'll try the easy method first.