Re: booting FAI kernel with initrd

2007-01-06 Thread Michael Tautschnig
[...]
 
 On a machine running a stock Debian kernel 2.6.18 (with etch)
 edit /etc/initramfs-tools/initramfs.conf 
 and change to these lines
 
 MODULES=netboot
 BOOT=nfs
 
I doubt that you really need these, actually I did not change my initramfs.conf
and it still works.

 then mkinitamfs -o fai-initrd. This creates the initrd for net booting.
 Copy the the kernel /boot/vmlinuz-2.6.18-3-686 and fai-initrd to /srv/fai/tftp
 In pxelinux.cfg/ use this file:
 
If you don't change initramfs.conf, you don't even need to run mkinitramfs ... -
just copied over the kernel and the initrd that was already there.

 label fai-generated
 kernel vmlinuz-2.6.18-3.686
 append initrd=fai-initrd ip=dhcp 
 FAI_CONFIG_SRC=nfs://kueppers/usr/local/share/cs-etch FAI_ACTION=install 
 root=/dev/nfs 
 nfsroot=134.95.9.149:/usr/lib/fai/nfsroot-etch,v2,tcp,rsize=32768,wsize=32768 
 FAI_FLAGS=verbose,sshd,createvt
 
For the sake of completeness, I'm using the following pxelinux.cfg/default:

label fai-generated
kernel vmlinuz-2.6.17-2-486
append ip=dhcp devfs=nomount FAI_ACTION=install root=/dev/nfs  
FAI_FLAGS=verbose,sshd,createvt,syslogd initrd=initrd.img-2.6.17-2-486 
nfsroot=192.168.248.29:/srv/fai/nfsroot


Actually one shouldn't need the additional nfsroot=..., if it is already
provided by DHCP; however some versions of initramfs-tools seem to be buggy (and
I don't know whether it got fixed already) and fail to parse the DHCP results.

Best,
Michael



pgpCOu0suY1i6.pgp
Description: PGP signature


Re: booting FAI kernel with initrd

2007-01-06 Thread Henning Sprang

On 1/6/07, Michael Tautschnig [EMAIL PROTECTED] wrote:

[...]

 On a machine running a stock Debian kernel 2.6.18 (with etch)
 edit /etc/initramfs-tools/initramfs.conf
 and change to these lines

 MODULES=netboot
 BOOT=nfs

I doubt that you really need these, actually I did not change my initramfs.conf
and it still works.


Right, that seems to work. The root=/dev/nfs seems most important.


Actually one shouldn't need the additional nfsroot=..., if it is already
provided by DHCP; however some versions of initramfs-tools seem to be buggy (and
I don't know whether it got fixed already) and fail to parse the DHCP results.


Right, I fail to get an installation started when not having nfsroot
set on kernelk command line.
So my orginal question, if/how this can be done with getting the
nfsroot location via dhcp seems not yet solved
In most situations it's enough to set it on the kernel command line,
but it's not 100% compatible to the strategy of putting these features
in the Kernel.

Henning


Re: booting FAI kernel with initrd

2007-01-06 Thread Michael Tautschnig
[...]
 
 Actually one shouldn't need the additional nfsroot=..., if it is already
 provided by DHCP; however some versions of initramfs-tools seem to be 
 buggy (and
 I don't know whether it got fixed already) and fail to parse the DHCP 
 results.
 
 Right, I fail to get an installation started when not having nfsroot
 set on kernelk command line.
 So my orginal question, if/how this can be done with getting the
 nfsroot location via dhcp seems not yet solved
 In most situations it's enough to set it on the kernel command line,
 but it's not 100% compatible to the strategy of putting these features
 in the Kernel.


I think the initramfs-tools bug related to these problems is
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387808

- and it isn't fixed yet... I guess it's just some small bug in the scripts
running in the busybox, but I haven't found the time to debug it.

Best,
Michael



pgpoXoDZuZ67c.pgp
Description: PGP signature


booting FAI kernel with initrd

2007-01-05 Thread Thomas Lange
I like to answer this question from IRC

 lazyb0y did anybody ever create an initrd for fai that includes features to 
 get the location of the nfsroot by dhcp and mount the nfsroot
 lazyb0y as opposed to having the kernel features compiled in and do that on 
 the kernel level?

 h01ger yes,lots of peoole
No, not lots of people. I think only oz, h0lger and I did this for FAI.

It works this way:

On a machine running a stock Debian kernel 2.6.18 (with etch)
edit /etc/initramfs-tools/initramfs.conf 
and change to these lines

MODULES=netboot
BOOT=nfs

then mkinitamfs -o fai-initrd. This creates the initrd for net booting.
Copy the the kernel /boot/vmlinuz-2.6.18-3-686 and fai-initrd to /srv/fai/tftp
In pxelinux.cfg/ use this file:

label fai-generated
kernel vmlinuz-2.6.18-3.686
append initrd=fai-initrd ip=dhcp 
FAI_CONFIG_SRC=nfs://kueppers/usr/local/share/cs-etch FAI_ACTION=install 
root=/dev/nfs 
nfsroot=134.95.9.149:/usr/lib/fai/nfsroot-etch,v2,tcp,rsize=32768,wsize=32768 
FAI_FLAGS=verbose,sshd,createvt

This boots my Thinkpad T60 without problems where the default FAI
kernel does not work.

Do not forget to change the initramfs.conf back to is previous
version, otherwise the next kernel update will create an initrd which
will not boot your machine any more (this happend to me once) or use
the option -d.

-- 
regards Thomas