Replacing stuff on d-i initrd

2008-11-06 Thread Stephen R Marenka
On Thu, Nov 06, 2008 at 03:21:33AM +0100, Michael Schmitz wrote:
> I need to diagnose this in more detail really. I'll have to consult Stephen 
> on 
> how to replace modules in the install initrd image so kernel fixes can be 
> tested without a full d-i rebuild. 

The following dumps an initrd/initramfs into the current directory.

zcat $initrd | cpio -iv

The following packs the current directory up again.

find . -print0 | cpio -0 -H newc -ov | gzip -c > $initrd

Peace,

Stephen

-- 
Stephen R. Marenka If life's not fun, you're not doing it right!
<[EMAIL PROTECTED]>


signature.asc
Description: Digital signature


Re: debian daily netinst cd

2008-11-06 Thread Kars de Jong
On wo, 2008-10-15 at 20:41 -0500, Stephen R Marenka wrote:
> The latest daily [0] d-i netinst cdrom and daily [1] includes a 
> tentative 2.6.26 -9 kernel, which includes all the patches [2] 
> requested by Michael Schmitz and Finn Thain.
> 
> Hopefully we've got about everything?
> 
> I haven't got quite a full automated install yet, but I'm getting close.
> :)
> 
> Remember this cdrom has etch-m68k as the base, so you'll need
> probably need suite=etch-m68k and modules=etch-support for kernel args.

Hi Stephen,

I am currently testing the installer on my MVME167 board with my own
kernel and the nativehd initrd.gz, I specified the above kernel args as
well.

The installer configures my network interface correctly.

I am however running into trouble at mirror selection time. Whatever
mirror I select, I keep getting the message "Architecture not supported
by selected mirror". I made sure I chose a mirror which has it
(debian.cs.binghamton.edu).

When I look in /var/log/syslog I see the following:

Nov  6 21:16:08 choose-mirror[1483]: DEBUG: command: wget -q 
http://debian.cs.binghamton.edu/debian//dists/etch-m68k/Release -O - | grep 
^Suite: | cut -d' ' -f 2
   
Nov  6 21:16:10 choose-mirror[1483]: DEBUG: command: wget -q 
http://debian.cs.binghamton.edu/debian//dists/stable/Release -O - | grep 
^Codename: | cut -d' ' -f 2 
  
Nov  6 21:16:12 choose-mirror[1483]: INFO: codename set to: etch
Nov  6 21:16:12 choose-mirror[1483]: DEBUG: command: wget -q 
http://debian.cs.binghamton.edu/debian//dists/stable/main/binary-m68k/Release 
-O - | grep Architecture
 
Nov  6 21:16:13 choose-mirror[1483]: DEBUG: Architecture not supported by 
selected mirror 
  
Nov  6 21:16:19 main-menu[339]: (process:1475): wget: server returned error: 
HTTP/1.1 404 Not Found  
   
Nov  6 21:16:19 main-menu[339]: INFO: Menu item 'choose-mirror' succeeded but 
requested to be left unconfigured.

When executing the above commands by hand the first wget returns
"etch-m68k", the second returns "etch", the third wget fails. The
puzzling bit is the second wget, why does it download stable/Release?

I cannot continue with the installation at this point, and I don't know
how to get past the above failure manually.


Kind regards,

Kars.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Replacing stuff on d-i initrd

2008-11-06 Thread Michael Schmitz
Hi Stephen,

> > I need to diagnose this in more detail really. I'll have to consult Stephen 
> > on 
> > how to replace modules in the install initrd image so kernel fixes can be 
> > tested without a full d-i rebuild. 
> 
> The following dumps an initrd/initramfs into the current directory.
> 
>   zcat $initrd | cpio -iv
> 
> The following packs the current directory up again.
> 
>   find . -print0 | cpio -0 -H newc -ov | gzip -c > $initrd

Thanks for educating me on how simple it is to modify an initrd :-)

I'll build my development kernels with the Debian config and post test files.

Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Replacing stuff on d-i initrd

2008-11-06 Thread Stephen R Marenka
On Fri, Nov 07, 2008 at 12:13:55AM +0100, Michael Schmitz wrote:
> Hi Stephen,
> 
> > > I need to diagnose this in more detail really. I'll have to consult 
> > > Stephen on 
> > > how to replace modules in the install initrd image so kernel fixes can be 
> > > tested without a full d-i rebuild. 
> > 
> > The following dumps an initrd/initramfs into the current directory.
> > 
> > zcat $initrd | cpio -iv
> > 
> > The following packs the current directory up again.
> > 
> > find . -print0 | cpio -0 -H newc -ov | gzip -c > $initrd
> 
> Thanks for educating me on how simple it is to modify an initrd :-)
> 
> I'll build my development kernels with the Debian config and post test files.

It's easy once you know the secret incantation. ;)

Peace,

Stephen

-- 
Stephen R. Marenka If life's not fun, you're not doing it right!
<[EMAIL PROTECTED]>


signature.asc
Description: Digital signature


Re: debian daily netinst cd

2008-11-06 Thread Stephen R Marenka
On Thu, Nov 06, 2008 at 10:39:27PM +0100, Kars de Jong wrote:
> On wo, 2008-10-15 at 20:41 -0500, Stephen R Marenka wrote:
> > The latest daily [0] d-i netinst cdrom and daily [1] includes a 
> > tentative 2.6.26 -9 kernel, which includes all the patches [2] 
> > requested by Michael Schmitz and Finn Thain.
> > 
> > Hopefully we've got about everything?
> > 
> > I haven't got quite a full automated install yet, but I'm getting close.
> > :)
> > 
> > Remember this cdrom has etch-m68k as the base, so you'll need
> > probably need suite=etch-m68k and modules=etch-support for kernel args.
> 
> Hi Stephen,
> 
> I am currently testing the installer on my MVME167 board with my own
> kernel and the nativehd initrd.gz, I specified the above kernel args as
> well.
> 
> The installer configures my network interface correctly.
> 
> I am however running into trouble at mirror selection time. Whatever
> mirror I select, I keep getting the message "Architecture not supported
> by selected mirror". I made sure I chose a mirror which has it
> (debian.cs.binghamton.edu).
> 
> When I look in /var/log/syslog I see the following:
> 
> Nov  6 21:16:08 choose-mirror[1483]: DEBUG: command: wget -q 
> http://debian.cs.binghamton.edu/debian//dists/etch-m68k/Release -O - | grep 
> ^Suite: | cut -d' ' -f 2  
>  
> Nov  6 21:16:10 choose-mirror[1483]: DEBUG: command: wget -q 
> http://debian.cs.binghamton.edu/debian//dists/stable/Release -O - | grep 
> ^Codename: | cut -d' ' -f 2   
> 
> Nov  6 21:16:12 choose-mirror[1483]: INFO: codename set to: etch  
>   
> Nov  6 21:16:12 choose-mirror[1483]: DEBUG: command: wget -q 
> http://debian.cs.binghamton.edu/debian//dists/stable/main/binary-m68k/Release 
> -O - | grep Architecture  
>
> Nov  6 21:16:13 choose-mirror[1483]: DEBUG: Architecture not supported by 
> selected mirror   
> 
> Nov  6 21:16:19 main-menu[339]: (process:1475): wget: server returned error: 
> HTTP/1.1 404 Not Found
>  
> Nov  6 21:16:19 main-menu[339]: INFO: Menu item 'choose-mirror' succeeded but 
> requested to be left unconfigured.
> 
> When executing the above commands by hand the first wget returns
> "etch-m68k", the second returns "etch", the third wget fails. The
> puzzling bit is the second wget, why does it download stable/Release?
> 
> I cannot continue with the installation at this point, and I don't know
> how to get past the above failure manually.

I can confirm the regression. I'll have to dig into choose-mirror to 
see what they broke. (Sigh.)

Thanks for the report,

Stephen

-- 
Stephen R. Marenka If life's not fun, you're not doing it right!
<[EMAIL PROTECTED]>


signature.asc
Description: Digital signature