Editing contents of initrd

Hi,

I want to edit the contents of initrd. For this, I extracted the
contents of my initrd:

$ mkdir /tmp/initrd
$ cd /tmp/initrd
$ gunzip -c /boot/initrd-2.6.17.img | cpio -i

And hence the contents were extracted and made the changes I wanted to
do. Now how do I wrap this changed hiereachy BACK into a valid initrd?

Thanks,

Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Daniel Rodrick [ Fr, 08 September 2006 09:01 ] [ ID #1459093 ]

Re: Editing contents of initrd

why not try the exact opposite?

cpio -o | gzip



On Fri, 8 Sep 2006, Daniel Rodrick wrote:

> Hi,
>
> I want to edit the contents of initrd. For this, I extracted the
> contents of my initrd:
>
> $ mkdir /tmp/initrd
> $ cd /tmp/initrd
> $ gunzip -c /boot/initrd-2.6.17.img | cpio -i
>
> And hence the contents were extracted and made the changes I wanted to
> do. Now how do I wrap this changed hiereachy BACK into a valid initrd?
>
> Thanks,
>
> Dan
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> FAQ: http://kernelnewbies.org/faq/
>
>
> +++++++++++++++++++++++++++++++++++++++++++
> This Mail Was Scanned By Mail-seCure System
> at the Tel-Aviv University CC.
>
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Hayim Shaul [ So, 10 September 2006 12:54 ] [ ID #1460991 ]
Linux » gmane.linux.newbie » Editing contents of initrd

Vorheriges Thema: Firewire camera and PCMCIA card under Debian
Nächstes Thema: CUPS Problems