[prev in list] [next in list] [prev in thread] [next in thread] 

List:       suse-autoinstall
Subject:    Re: [suse-autoinstall] SuSE 10.0: howto put an info file into initrd
From:       Steffen Winterfeldt <snwint () suse ! de>
Date:       2005-10-28 10:23:45
Message-ID: Pine.LNX.4.63.0510281220490.24704 () ligeti ! suse ! de
[Download RAW message or body]

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

-- 
To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com
For additional commands, e-mail: suse-autoinstall-help@suse.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic