Rules to modify pxelinux.cfg/default fail from USB

You can report problems, make suggestions, about the new BETA versions in this forum. For stuff related to final releases, please post a message in other forums
Post Reply
gernot
Posts: 1130
Joined: 07 Apr 2010, 16:19

Rules to modify pxelinux.cfg/default fail from USB

Post by gernot » 28 Aug 2010, 11:00

/tftpboot/pxelinux.cfg/default is not prepared if sysrced boots from USB

Its because the rules in /etc/init.d/pxebootsrv use "scandelay=1" as trigger
While creating the USB-stick this trigger is replaced with scandelay=5.

Code: Select all

sed -i -e "s!scandelay=1!scandelay=5 netboot=nbd://$PXEBOOTSRV_LOCALIP:2000!g" /tftpboot/pxelinux.cfg/default
Independed of this here is also a confusing thing.
In /etc/conf.d/pxebootsrv are HTTP and NBD are by default on.
in a first step pxelinux.cfg/default is modified with HTTP and NBD on.
later here DOHTTPD is disabled,

Code: Select all

        # ---- start the NBD server
        if [ $PXEBOOTSRV_DONBD == "yes" ]
        then
                PXEBOOTSRV_DOHTTPD="no"
                /usr/bin/nbd-server $PXEBOOTSRV_LOCALIP:2000 /tftpboot/sysrcd.dat -r
        fi
Result is a config with HTTPsource and an running NBD

Gernot

p.s. i prefer NBD :-)

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Rules to modify pxelinux.cfg/default fail from USB

Post by admin » 11 Sep 2010, 12:07

Thanks for having reported these problems.
They will be fixed in the next sysresccd-1.6.0 version.
I left HTTP as the default boot method as it's simpler and more standard for most users.

gernot
Posts: 1130
Joined: 07 Apr 2010, 16:19

Re: Rules to modify pxelinux.cfg/default fail from USB

Post by gernot » 11 Sep 2010, 19:08

Yes thats right. Also the network and the bootserver are free after HTTP-boot.

Gernot

Post Reply