I have a pre made boot files for memdisk.

hdd, and linux

hdd - boots from the hard disk.
linux - boots from the linux rebuild setup.

My config.pl copies hdd to the mac address of the machines when it completes 
the first stage.  This used to be after 1 reboot, but with linux, it's 
without the reboot.

Once it's switch to hdd, it can continue to build by itself. and when it's 
finished it's all ready to go.

I use a script on the server, which is now hooked up to a web interface and 
PC's listed in a database that allows you to alter the parameters you wish to 
build with, and set a machine to build.  The script just copies linux to the 
mac address of the relevant machine, and you go and turn it on.

Just a different idea.

Regards

Russell Smith.

On Wed, 16 Jun 2004 08:33 pm, Dr. F. Lee wrote:
> Hi,
>
> > In order to have a really unattended installation I have a
> > software switch to  choose between "installation" and "local
> > booting". The admin may set this  switch to "installation" on the
> > server, then after some time the client boots  and must tell the
> > server to turn the switch to "local booting".
>
> I achieve this by using special shares on the samba server.
> \\servername\boot-l sets the boot to local
> \\servername\boot-i sets the boot to install
> etc
> by using the 'preexec' option in samba (lines from smb.conf below).
>
> Clients then connect to the appropriate share to change their boot options.
> [I install machines on a totally separate LAN for security: you might want
> to have password protection on these shares, I suppose]
>
> The script I use modifies the pxelinux.cfg files: I include it below.
>
> Hope this helps,
>
> Frank
>
> /etc/samba/smb.conf contains:
> ...
> [boot-i]
>    comment = Set client boot to inst
>    browseable = no
>    path = /chboot/inst
>    printable = no
>    public = no
>    writable = yes
>    create mode = 0755
>    preexec = /bin/chboot.smb %I linst
>
> [boot-l]
>    comment = Set client boot to local
>    browseable = no
>    path = /chboot/local
>    printable = no
>    public = no
>    writable = yes
>    create mode = 0755
>    preexec = /bin/chboot.smb %I local
>
>
> /bin/chboot.smb contains:
>
> #!/bin/bash
> # chboot.smb - a script to adjust the default boot process during
> # an automatic windows install.
>
> # Usage: chboot.smb HOST BOOTSTATE
> # set -xv
> set -e
> # Setup stuff:
> # Directory where the pxeconfig files live:
> dir=/boot/fai/pxelinux.cfg/
> umask 0002
>
> # Some rudimentary logging. Just in case.
> date >>/tmp/chboot.log
> echo "Started with $1 $2 as args" >>/tmp/chboot.log
>
> ip=$1
> type=$2
> mac=`/usr/sbin/arp $ip | grep ether | sed s/.*ether\ \ \ // | sed s/\ .*//
>
> | tr [A-Z] [a-z] | sed s/:/-/g`
>
> # if we don't have the MAC address in the arp table we're fairly stuffed,
> of course.
> if [ -z $mac ] ; then
>  echo "Error - cannot find MAC address in ARP table"
>  exit
> fi
>
> ## echo IP address is $ip, file is $file, type is $type, mac is $mac
>
> >>/tmp/chboot.log
>
> # Generate a cfengine.conf file...
> cat <<EOF >/tmp/cfengine.conf.$mac
> # To convert the default=local to the default=linst, for example
> control:
>         actionsequence = ( editfiles )
>
>       editfiles:
>           { $dir/01-$mac
>            DeleteLinesContaining "default "
>            AppendIfNoSuchLine "default $type"
>            AppendIfNoSuchLine "timeout 300"
>           }
> EOF
>
> # and run the cfengine...
> HOME=/home/win /usr/bin/cfengine -f /tmp/cfengine.conf.$hip
>
> >>/tmp/chboot.log 2>&1
>
> # tidy up the file
> rm /tmp/cfengine.conf.$hip
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
> Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
> Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
> REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to