SuSE 10.0: howto put an info file into initrd
Hi, if you want to put an "info" file into the SuSE 10.0 initrd, e.g. for creating an autoinstall-CD, you can do it in the following way: ============= 8< ============ mv initrd{,.gz} gunzip initrd.gz echo info | cpio -o -H newc -A -F initrd gzip -9 initrd mv initrd{.gz,} ============= 8< ============ It took me a while to notice the necessary "-H newc" option. Regards, Peter.
On Thursday 27 October 2005 16:31, Gunreben, Peter (Peter) wrote:
if you want to put an "info" file into the SuSE 10.0 initrd, e.g. for creating an autoinstall-CD, you can do it in the following way:
thanks for sharing. I already had a small tool for that on http://www.suse.de/~ug but maybe it's good to have it in the ml archive too now. -- ciao, Uwe Gansert Uwe Gansert, Server Technologies Team SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg, Germany e-mail: uwe.gansert@suse.de, Tel: +49-(0)911-74053-0, Fax: +49-(0)911-74053-476, Web: http://www.suse.de
On Thu, 27 Oct 2005, Gunreben, Peter (Peter) wrote:
if you want to put an "info" file into the SuSE 10.0 initrd, e.g. for creating an autoinstall-CD, you can do it in the following way:
============= 8< ============ mv initrd{,.gz} gunzip initrd.gz echo info | cpio -o -H newc -A -F initrd gzip -9 initrd mv initrd{.gz,} ============= 8< ============
It took me a while to notice the necessary "-H newc" option.
Actually, it is not necessary to unpack the initrd at all, you can just 'cat' compressed initrds together. So: echo info | cpio -o -H newc | gzip >>initrd will do. Steffen
participants (3)
-
Gunreben, Peter (Peter)
-
Steffen Winterfeldt
-
Uwe Gansert