View Single Post
Old 05-13-2006   #4 (permalink)
c0nv3r9
Church of WiFi
 
c0nv3r9's Avatar
 
Join Date: Jun 2002
Location: not behind you, or am I?
Posts: 290
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.
__________________
He shall recount his worthies: they shall stumble in their walk; they shall make haste to the wall thereof, and the defence shall be prepared.
-- Nahum 2:5, The Holy Bible, KJV
c0nv3r9 is offline   Reply With Quote