[syslinux] boot conditionnel

Murali Krishnan Ganapathy gmurali at cs.uchicago.edu
Tue Oct 25 21:03:49 PDT 2005


BRIZARD Olivier wrote:
> Geert Stappers a écrit :
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On Mon, Oct 24, 2005 at 12:03:19PM +0200, BRIZARD Olivier wrote:
>>  
>>
>>> Bonjour,
>>> est il possible de faire booter pxelinux en fonction de condition.
>>> J'ai besoin que la machine boot 2 fois (après un reboot) sur le 
>>> réseau (undis3c) et ensuite en localboot
>>>   
>>
>>
>> If I understand the question correct,
>> you want at the second reboot different behaviour.
>>
>> The challenge with that is how to tell recognise
>> a first and a second boot apart
>>
>> You have to search outside the booting client
>> and teach the server how to identify the second boot.
>>
>>
>> Cheers
>> Geert Stappers
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.2.4 (GNU/Linux)
>>
>> iD8DBQFDXMXKOSINbgwa/7sRAgp/AKDEmNrESL6gZDRN/XnzlQRUUuRSLQCeMWSH
>> tj9+8GWBll/RQlDarx9g8yA=
>> =6Q1V
>> -----END PGP SIGNATURE-----
>>
>> _______________________________________________
>> SYSLINUX mailing list
>> Submissions to SYSLINUX at zytor.com
>> Unsubscribe or set options at:
>> http://www.zytor.com/mailman/listinfo/syslinux
>> Please do not send private replies to mailing list traffic.
>>
>>  
>>
> sorry for my very bad english!!
>
> so I want to reinstall a computer remotely with 
> pxelinux/unattended.sourceforge
> At the first time Unattended.Sourceforge recreate partition and must 
> reboot. After It reconnect to the TFTP server to begin the windows 
> reinstall. Until there it's ok!
> But during the windows install the computer reboot and it must reboot 
> on localboot and not on the network!
>
> So the idea is pxelinux write a tempory file on server with a value 
> and read this value who decrease on each boot (by connecting a network 
> drive) and if this value is equal to zero thus pxelinux boot on 
> localboot (default) else it's boot on network!!
>
Another option is to write the information on the local hard disk and 
have some COMBOOT code distinguish between the different phases. In my 
case the first phase is always linux which writes data in a 
pre-specified place in the hard disk (ideally this area should not be 
used by any partition or MBR). The COMBOOT code searches the 
pre-specified place for any instructions. If nothing found it executes 
the instructions given in its command line (linux in my case) else it 
follows specified instructions.

Is this what you had in mind? Details and downloads are available from 
http://gui.mahamurali.net (Check for autoboot)

- Murali




More information about the Syslinux mailing list