28 Oct
2005
28 Oct
'05
10:24
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