Jump to content











Photo
* * * * * 1 votes

Change pxelinux.cfg location on /default load

pxe pxelinux conf

  • Please log in to reply
9 replies to this topic

#1 johnkubik

johnkubik
  • Members
  • 4 posts
  •  
    United States

Posted 18 December 2013 - 10:52 AM

Hey everyone,

 

I am running into a bit of an issue using pxelinux 3.82 and fog.

 

When my pxelinux tries to load the pxelinux.cfg file (after it goes through scanning for the UUID, mac, and HEX IP) and tried to load the pxelinux.cfg/default I would I would like to load it from a different directory...

Mean I would like the load sequence to look like this:

 

Trying to load: pxelinux.cfg/UUID

Trying to load: pxelinux.cfg/MAC

Trying to load: pxelinux.cfg/HEXID

Trying to load: /local/pxelinux.cfg/default

 

The reason I would like this to happen is that sometimes there is a job in the fog directory listed as the MAC (which is the default tftpboot) and sometimes there isnt, which means the pxelinux goes all the way down to the default file to load from the local hard drive...

 

There are so many job files listed in the /tftpboot/ that sometimes it doesnt load the /default.

 

I would like to be able to have the last option loaded from a different directory that ONLY has the .cfg file so it can load faster.

 

Is there any way to change this?

 

If you have any questions about my question please let me know.

 

Thanks in advance!!



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 18 December 2013 - 01:56 PM

 

If you have any questions about my question please let me know.

 

Thanks in advance!!

 

.... starting by providing some info on WHAT THE HECK "fog" is might be a good start. :whistling:

 

ESP capabilities are usually at their lowest before Christmas....

 

... and "fog job" is not a nice thing to look for in the Urban Dictionary ;).

 

This "fog"? :dubbio:

 

http://www.fogproject.org/

 

 

:cheers:

Wonko



#3 johnkubik

johnkubik
  • Members
  • 4 posts
  •  
    United States

Posted 18 December 2013 - 02:05 PM

Hey Wonko, thanks for the quick reply!

http://www.fogprojec...le=FOGUserGuide is an image deployment software. It makes it easy to deploy images to remote or local computer.

 

It uses pxelinux as the pxe loader to download the FOGlinux to the remote computer.

 

So my question is point at the pxelinux portion where it tries to find the pxelinux.cfg file and how to change it.

 

Cheers!



#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 18 December 2013 - 02:32 PM

So my question is point at the pxelinux portion where it tries to find the pxelinux.cfg file and how to change it.

Yep :), but now we at least know of what we are talking.

 

There is still however the risk of slipping on a chocolate covered banana :ph34r:

http://homepage.ntlw...red-banana.html

i.e. there might be ways to reach the final goal which not necessarily have to go down the "wish" you expressed.

 

If you could now try to better explain the usage of the fogproject in your particular setup, it may help.

 

Try searching on the page you posted a link to: http://www.fogprojec...le=FOGUserGuide

for the word "job". 

 

You will see how there is not any meaningful reference to it, so if you could explain WHAT a "job" is and HOW/WHY sometimes it is there and sometimes it isn't, I am sure it would help in understanding the issue.

 

:cheers:

Wonko



#5 johnkubik

johnkubik
  • Members
  • 4 posts
  •  
    United States

Posted 18 December 2013 - 02:36 PM

Ok, sorry. Let me restate my question without referencing FOG, this is more specifically a pxelinux question.

 

Question:

How do I change the bootpath of pxelinux when it tries to load the pxelinux.cfg/default? I want to change ONLY the pxelinux.cfg/default path to a different path, not any of the other loading options.



#6 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 18 December 2013 - 03:27 PM

Oh noes. :frusty:

There has been evidently a misunderstanding. :(

AFAIK there is NO way to change (if not - possibly - by modifying the source and recompiling it) the default order in which the standard PXELINUX searches (cannot say if fogproject or your particular setup is using a non-standard PXELINUX):
http://www.syslinux....ure_PXELINUX.3F

What I was trying to get from you was to describe in extreme detail the final goal, as opposed to the way you think it should be done, and done through PXELINUX 3.82, to hopefully provide an alternate way to get to the final goal.

:cheers:
Wonko

#7 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 21 December 2013 - 10:28 PM

Yes, you can change the path by using DHCP options. Please see here[1].

[1] http://www.syslinux....HCP_response.3F

#8 johnkubik

johnkubik
  • Members
  • 4 posts
  •  
    United States

Posted 24 December 2013 - 09:18 AM

Hey Sha0... thanks!! That is a great resource.

 

But sadly it does not help me. There is no way to change the filename (the last line in the code) to be variable.

 

To be very clear of the end goal... when PXELinux loads it does this...

 

Trying to load: pxelinux.cfg/UUID

Trying to load: pxelinux.cfg/MAC

Trying to load: pxelinux.cfg/HEXID

Trying to load: pxelinux.cfg/default

**Notice how it thinks pxelinux is in the same root directory for all the different config files**

 

I would like it to do this:

Trying to load: pxelinux.cfg/UUID

Trying to load: pxelinux.cfg/MAC

Trying to load: pxelinux.cfg/HEXID

Trying to load: /differentdirectory/pxelinux.cfg/default

**Notice how only the default config file is being loaded from a different directory**

 

 

 

So, I need to figure out what is taking place during the following sequence, and know where to change it.

Trying to load: pxelinux.cfg/UUID

Trying to load: pxelinux.cfg/MAC

Trying to load: pxelinux.cfg/HEXID

Trying to load: pxelinux.cfg/default

 
 
 
The issue with trying to change the DHCP option is that that changing the 'filename' variable in the DHCP option causes it to do this
 

Trying to load: /differentdirectrory/pxelinux.cfg/UUID

Trying to load: /differentdirectrory/pxelinux.cfg/MAC

Trying to load: /differentdirectrory/pxelinux.cfg/HEXID

Trying to load: /differentdirectrory/pxelinux.cfg/default

**Changing the DHCP option causes ALL of the config file directories to be changes instead of JUST the default**

 

Hope some one can help out with this. It is driving me bonkers ;)

Thanks again,

John



#9 PaulDG

PaulDG

    Newbie

  • Members
  • 18 posts
  •  
    United Kingdom

Posted 24 December 2013 - 07:24 PM

Does the config command work in 3.82?  If so you could just chain into the /differentdirectory/pxelinux.cfg/default from the pxelinux.cfg/default. If not, a vesamenu.c32 call appending the new menu.


Edited by PaulDG, 24 December 2013 - 07:24 PM.


#10 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 25 December 2013 - 06:35 AM

...sadly it does not help me. There is no way to change the filename (the last line in the code) to be variable.

The two DHCP options of interest here are 209 and 210. You either specify these options and you don't have the UUID, MAC and IP config-file fallback trials, or you don't specify them and you have the UUID, MAC and IP trials. So specify these options for all clients, then from that config-file, do something fancier and client-specific. Syslinux supports Lua scripts, which have access to parameters like MAC addresses.





Also tagged with one or more of these keywords: pxe, pxelinux, conf

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users