View Single Post
Old 05-14-2006   #5 (permalink)
beakmyn
root\.workspace\.garbage.
 
Join Date: Aug 2003
Posts: 4,807
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.
__________________
Daughter with arms inside shirt: "Daddy I'm not Armish"

┌──────────────────────────────┐
NS Icons Explained|et hoc genus omne
└──────────────────────────────┘
beakmyn is offline   Reply With Quote