small change in pxebootsrv

Post there if you plan to contribute to this SystemCd
gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

small change in pxebootsrv

Postby gernot » 30 Sep 2010, 18:24

The usefuel option PXEBOOTSRV_EXTRA was only working with HTTP-boot.


Code: Select all

*** /etc/conf.d/pxebootsrv.org    2010-09-30 19:23:27.361000128 +0000
--- /etc/conf.d/pxebootsrv    2010-09-30 20:09:35.177999944 +0000
***************
*** 36,39 ****
--- 36,42 ----
  PXEBOOTSRV_DONBD="no"
 
+ # You can append extra parameters like rootpass= or ar_source=
+ PXEBOOTSRV_EXTRA=""                               
+
  # Here is a typical PXE-Boot configuration --> update with your settings
  PXEBOOTSRV_SUBNET="192.168.1.0"                    # Used only if PXEBOOTSRV_DODHCPD="yes"
***************
*** 51,55 ****
  # Set a low value to boot faster. Default, wait 900 deciseconds (1min30sec)
  PXEBOOTSRV_TIMEOUT="50"                           # Used only if PXEBOOTSRV_DOTFTPD="yes"
- # You can append extra parameters
- PXEBOOTSRV_EXTRA=""                               # Used only if PXEBOOTSRV_DOTFTPD="yes"
 
--- 54,56 ----

Code: Select all

*** /etc/init.d/pxebootsrv.org    2010-09-30 19:24:36.964000003 +0000
--- /etc/init.d/pxebootsrv    2010-09-30 20:14:36.049000115 +0000
***************
*** 128,136 ****
          if [ $PXEBOOTSRV_DONBD == "yes" ]
          then
!             sed -i -e "s!scandelay=.!scandelay=5 netboot=nbd://$PXEBOOTSRV_LOCALIP:2000!g" /tftpboot/pxelinux.cfg/default
          fi
          if [ $PXEBOOTSRV_DONFSD == "yes" ]
          then
!             sed -i -e "s!scandelay=.!scandelay=5 netboot=nfs://$PXEBOOTSRV_LOCALIP:/tftpboot!g" /tftpboot/pxelinux.cfg/default
          fi
      fi
--- 128,136 ----
          if [ $PXEBOOTSRV_DONBD == "yes" ]
          then
!             sed -i -e "s!scandelay=.!scandelay=5 netboot=nbd://$PXEBOOTSRV_LOCALIP:2000 ${PXEBOOTSRV_EXTRA}!g" /tftpboot/pxelinux.cfg/default
          fi
          if [ $PXEBOOTSRV_DONFSD == "yes" ]
          then
!             sed -i -e "s!scandelay=.!scandelay=5 netboot=nfs://$PXEBOOTSRV_LOCALIP:/tftpboot ${PXEBOOTSRV_EXTRA}!g" /tftpboot/pxelinux.cfg/default
          fi
      fi


Gernot

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

Re: small change in pxebootsrv

Postby admin » 30 Sep 2010, 19:01

Thanks for that contribution, it will be in sysresccd-1.6.2-beta002


Return to “Contributions”

Who is online

Users browsing this forum: No registered users and 2 guests