On 10/18/10 17:57, Thomas Lange wrote:
>>>>>> On Mon, 18 Oct 2010 12:49:01 +0200, Jan Sievers 
>>>>>> <[email protected]> said:
> 
>     > Therefore it would by nice, if in the script make-fai-nfsroot the 
> currently 
>     > local variable $pxebin, could be configured in the 
> make-fai-nfsroot.conf 
>     > config file.
> This is not needed. You can either use a hook for the m-f-n call to
> copy your version of $pxebin. Or you can just copy your version once
> by hand, which is then not overwritten, since the cp is only executed,
> if there's not yet a $pxebin in $TFTPROOT.

At least the second is not the case as far as I see it:

make-fai-nfsroot:419-428

setup_dhcp(){
    # pxe and dhcp environment
    local pxebin=/usr/lib/syslinux/pxelinux.0
    rm -f $NFSROOT/boot/*.bak
    mkdir -p $TFTPROOT/pxelinux.cfg
    cp -pv $NFSROOT/boot/vmlinu?-* $NFSROOT/boot/initrd.img-* $TFTPROOT
----------------------v
    [ -f $pxebin ] && cp $pxebin $TFTPROOT
    echo "DHCP environment prepared. If you want to use it, you have to
enable the dhcpd and the tftp-hpa daemon."
}

Of course I can find other solutions to copy the needed pxelinux.0 file
in the place, I just though others might have the same need, since
booting KVM-virtual machines with PXE need a very recent version of
pxelinux.

The change to make-fai-nfsroot script is minimal and would be convenient
for probably a bunch of people.

Just my two cents



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

Reply via email to