Howto manipulate initram.igz?

All other development questions
thessy
Posts: 4
Joined: 27 Mar 2008, 10:27

Howto manipulate initram.igz?

Postby thessy » 27 Mar 2008, 14:26

Hi,

want to manipulate the initram.igz and add a new parameter 'BOOTNIC' for booting via pxe and multiple nics. My problem is that the pxe nic is on booting linux is the second (eth1) and so udhcpc fails with no lease.

Did unpackaging of an existing initram.igz like:

mkdir temp
cd temp
cat ../initram.igz | gzip -d | cpio -id

Tried to packaging the whole directory with:

find . -depth -print | cpio -ov | gzip > ../initram2.igz

But that seems not to be the right way. Error with the ram disk and vfs root.

How do you (the developers) generate the initram.igz package?

Regards
Thomas

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 27 Mar 2008, 19:16

Just use sysresccd-1.0.1-beta7: udhcpc is done on all the NICS.

thessy
Posts: 4
Joined: 27 Mar 2008, 10:27

Postby thessy » 28 Mar 2008, 07:29

Ok, thanx for the hint. I missed the link to the beta download.

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 28 Mar 2008, 20:54

I released SystemRescueCd-1.0.1-rc2 that improves the management of the dhcp client when there are multiple interfaces. Now it should work even when only one interface is connected, and it retries until dhcp works on one interface.

thessy
Posts: 4
Joined: 27 Mar 2008, 10:27

Postby thessy » 31 Mar 2008, 07:21

A little bit confused about version numbers: you write about 1.0.1-rc2 on download website I read 1.0.2-beta. Which is the latest?

thessy
Posts: 4
Joined: 27 Mar 2008, 10:27

Postby thessy » 31 Mar 2008, 09:57

I downloaded 1.0.2-beta and the problem with two nics is gone!

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 31 Mar 2008, 19:05

Happy that it works.

version 1.0.1-rc2 dissapeared from the website since the final 1.0.1 is available. A RC is a Release-candidate, so it's the version before the final. So here is the order of the versions:
1.0.1-betaX < 1.0.1-rcX < 1.0.1 < 1.0.2-betaX < 1.0.2-rcX < 1.0.2

Now 1.0.2-beta2 is available with the new improvements and bug fixes.

Ram
Posts: 10
Joined: 28 Mar 2008, 17:57

Postby Ram » 05 Apr 2008, 15:20

I am also interested in how to unpack initram.igz.

Please provide details.

Thanks!

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 05 Apr 2008, 15:50

Extract:

Code: Select all

mkdir tempdir
cat /path/to/initram.igz | gzip -d | cpio -id


Recreate initram.igz:

Code: Select all

cd tempdir
find . | cpio -H newc -o | gzip -9 |> /path/to/initram.igz

Jabberwock
Posts: 32
Joined: 13 Mar 2010, 23:33

Re: Howto manipulate initram.igz?

Postby Jabberwock » 13 Apr 2010, 20:05

Since 1.5.2 igz compressed with lzma
so

Extract

Code: Select all

mkdir tempdir
cat /path/to/initram.igz | /usr/bin/unlzma | cpio -id



Recreate initram.igz:

Code: Select all

cd tempdir
find . | cpio -H newc -o | /usr/bin/lzma -9 |> /path/to/initram.igz

bugmenotplease
Posts: 34
Joined: 17 May 2010, 18:50

Re: Howto manipulate initram.igz?

Postby bugmenotplease » 12 Jul 2011, 05:42

Correction:
Only the following worked for me:
extract

Code: Select all

$ cat ../customcd/isoroot/isolinux/initram.igz | unxz | sudo cpio -id


repack:

Code: Select all

$  find . |cpio -o -H newc| lzma > /tmp/new.initram.igz


Return to “Other”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest