One-time net-install

2008-10-21 Diskussionsfäden Nikola Knežević

Hi guys,

does anyone has a tip/trick how to do one-time net-install. I'm  
currently using fai-chboot to enable netinstall on a machine, and  
reboot it. Then I wait until I see in faimond that the machine started  
installation, so I again fire up fai-chboot to disable netinstall on  
that machine (ie. next time machine boots, it will do localboot). Is  
there a way to simplify this? I would like to use fai-chboot once...


Cheers,
Nikola


Re: One-time net-install

2008-10-21 Diskussionsfäden Thomas Lange
 On Tue, 21 Oct 2008 17:16:36 +0200, Nikola Kne$,1!(Bevi$,1 '(B 
 [EMAIL PROTECTED] said:

 does anyone has a tip/trick how to do one-time net-install. I'm  
 currently using fai-chboot to enable netinstall on a machine, and  
 reboot it. Then I wait until I see in faimond that the machine started  
 installation, so I again fire up fai-chboot to disable netinstall on  
 that machine (ie. next time machine boots, it will do localboot). Is  
 there a way to simplify this? I would like to use fai-chboot once...
You have to define LOGUSER and then call fai-setup. Then everything
should be set up (ssh keys) so that each install client can log into
you install server and call fai-chboot. You can also use faimond -b.

-- 
regards Thomas


making custom mkinitramfs

2008-10-21 Diskussionsfäden Jean Spirat

Hi,

I wanted to know the best way to make a custom mkinitramfs for FAI. 
Right now i just changed my configs and used:


mkinitramfs -o /srv/tftp/fai/initrd.img-2.6.26-1-amd64  2.6.26-1-amd64


 Is it enough ? I guess not as the unionfs and such should be installed 
somewhere no ?


regards,
JEan.


Re: making custom mkinitramfs

2008-10-21 Diskussionsfäden Thomas Lange
 On Tue, 21 Oct 2008 17:34:25 +0200, Jean Spirat [EMAIL PROTECTED] said:

  I wanted to know the best way to make a custom mkinitramfs for FAI. 
 Right now i just changed my configs and used:
Which configs?

 mkinitramfs -o /srv/tftp/fai/initrd.img-2.6.26-1-amd64  2.6.26-1-amd64

   Is it enough ? I guess not as the unionfs and such should be installed 
 somewhere no ?
FAI is now using aufs instead of unionfs.

-- 
regards Thomas


Re: One-time net-install

2008-10-21 Diskussionsfäden Thomas Neumann
hiya

Nikola Knežević schrieb:
 does anyone has a tip/trick how to do one-time net-install.

see attached file. It is our default pxelinux.cfg file. (hostname of our
faiserver has been replaced with a placeholder, apart from that no
modifications)

Every server boots from net by default. On first install you have to be
quick (15seconds) to interrupt the bootprocess and choose an installation,
on subsequent boots - just wait for the timeout.

That way you don't have to give write-access to everybody so they may be
able to juggle around pxeconfigs. If a reinstallation is necessary,
nothing has to be changed.

tschüß
thomas

P.S.: works for me ;P


default
Description: Binary data


Re: making custom mkinitramfs

2008-10-21 Diskussionsfäden Thomas Lange
 On Tue, 21 Oct 2008 18:48:59 +0200, Jean Spirat [EMAIL PROTECTED] said:

  so how to make the initramfs with all the dependancy needed, do you 
 know a list of it ?

  How would you build a new initramfs for FAI on say a debian lenny ?
First of all, I see not need to build a custom initramfs.
But have a look at make-fai-nfsroot -k or -K. This recreates the
initrd inside the nfsroot and copies it to the $TFTPROOT.

You can just add more kernel packages to /etc/fai/NFSROOT if you need
different kernels for your nfsroot.
-- 
regards Thomas