I'm just wondering if there is an easy way to do this... My pxelinux.cfg/default is getting very long... and I'd like to make it shorter by spliting it up into sections which would load other config files. So basically I want to do something like the grub: "configfile (nd)/other.lst" Is there an easy way? -- Cheers Paul
Am Mittwoch, 13. April 2005 14:34 schrieb Paul Hedderly:> I'm just wondering if there is an easy way to do this... > > My pxelinux.cfg/default is getting very long... and I'd like to make it > shorter by spliting it up into sections which would load other config > files. > > So basically I want to do something like the grub: > "configfile (nd)/other.lst"Interesting question! I have another example for a usefull usage: PXE Server with configuration for many clients. The clients configuration are different in some details, lets say the "default", but the rest is the same config. To avoid redundance by copying the default config file for every client (i.e. named by mac adress) it would be better to create a config file for one client: default linux include default.cfg With this you can change the default config without touching the client config. -- Klaus Franken, StrukturPunkt Beck & Franken GdbR E-Mail: Klaus.Franken at StrukturPunkt.de PGP: 004B 1943 129B 5808 E714 296B E022 4E82 5814 A05E WWW: http://www.StrukturPunkt.de/ Post: Mohrenstr. 2, 90762 F?rth Tel: 0911 / 7 87 44 70
>>So basically I want to do something like the grub: >> "configfile (nd)/other.lst"It is in the TODO file: "- Support loading a new configuration file." I am also longing for this feature.> default linux > include default.cfg > > With this you can change the default config without touching the client > config.I do not think (read: I do not know for sure) this will happen without major changes. Syslinux has to be able to open 2 or more files at the same time and AFAIK this is not implemented. Cheers Alex
Alexander Heinz wrote:>>> So basically I want to do something like the grub: >>> "configfile (nd)/other.lst" > > > It is in the TODO file: > "- Support loading a new configuration file." > > I am also longing for this feature. > >> default linux >> include default.cfg >> >> With this you can change the default config without touching the >> client config. > > > I do not think (read: I do not know for sure) this will happen without > major changes. Syslinux has to be able to open 2 or more files at the > same time and AFAIK this is not implemented. >Correct. Use a preprocessor. -hpa