Jump to content











Photo
- - - - -

Problem with INCLUDE


  • Please log in to reply
3 replies to this topic

#1 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 10 November 2009 - 10:58 PM

Hi,

I am trying to separate my style/layout information and use the INCLUDE statement so I only have to edit 1 config file to change style/layout information for multiple menu configs but the INCLUDE command won't include the file and all I end up with is the default unstyled menu. any idea's if I am doing something wrong?

I am using ISOLINUX 3.82
Just to be clear: The same style/layout information works fine if I have it directly in the MAIN.CFG file. it is only when I try to use INCLUDE from a separate file that I have the problem

the config files are below.

/boot/ISOLINUX/MAIN.CFG
UI VESAMENU.C32

INCLUDE /boot/ISOLINUX/STYLE.CFG

MENU TITLE Advanced Recovery CD

DEFAULT ARC



F1 F1.txt



# timeout 200



# ------------------------------------  Start MENU Items  --------------------------------- #



LABEL ARC

  MENU PASSWD

  MENU LABEL ^Advanced Recovery CD

  KERNEL /boot/etfsboot.bin

  APPEND

  TEXT HELP

							*** AUTHORIZED USE ONLY ***

  

  Press F1 for more information

  ENDTEXT



LABEL DIAGMENU

  MENU PASSWD

  MENU LABEL Hardware ^Diagnostic Tools

  COM32 VESAMENU.C32

  APPEND /boot/ISOLINUX/DIAG.CFG

  TEXT HELP

  HDD and Memory Diagnostic Tools

  ENDTEXT

  

LABEL OTHRMENU

  MENU PASSWD

  MENU LABEL ^Additional Tools

  COM32 VESAMENU.C32

  APPEND /boot/ISOLINUX/OTHER.CFG

  TEXT HELP

  Other useful tools.

  ENDTEXT

  

LABEL C

  MENU LABEL Boot from drive ^C:

  COM32 CHAIN.C32

  APPEND hd0

  TEXT HELP

  Boot from the computers hard drive.

  ENDTEXT 



LABEL REBOOT

  MENU LABEL Reboot

  COM32 reboot.C32

  APPEND

  TEXT HELP

  Reboot

  ENDTEXT
/boot/ISOLINUX/STYLE.CFG
PROMPT 0

MENU BACKGROUND BACKGRND.PNG



#		  Element	   ANSI	   Forground   Background  Shadow		

MENU COLOR screen 		   37;40		#80ffffff   #00000000   std

MENU COLOR border 		   30;44 		#00000000   #00000000   none

MENU COLOR title 		   1;36;44	#c00090f0   #00000000   std

MENU COLOR unsel		   37;44 		#90ffffff   #00000000   std

MENU COLOR hotkey 		   1;37;44	#ffffffff   #00000000   std

MENU COLOR sel 			   7;37;40	#e0ffffff   #20ff8000   all

MENU COLOR hotsel 		   1;7;37;40  #e0ffffff   #20ff8000   all

MENU COLOR disabled   	 1;30;44	#60cccccc   #00000000   std

MENU COLOR scrollbar	   30;44	  #40000000   #00000000   std

MENU COLOR tabmsg 		 31;40	  #90ffff00   #00000000   std

MENU COLOR cmdmark 		   1;36;40	#c000ffff   #00000000   std

MENU COLOR cmdline 		   37;40	  #c0ffffff   #00000000   std

MENU COLOR pwdborder	   30;47	  #80ffffff   #20ffffff   std

MENU COLOR pwdheader	   31;47	  #80ff8080   #20ffffff   std

MENU COLOR pwdentry		 30;47	  #80ffffff   #20ffffff   std

MENU COLOR timeout_msg 	 37;40	  #80ffffff   #00000000   std

MENU COLOR timeout	 	 1;37;40	#c0ffffff   #00000000   std

MENU COLOR help	   	 37;40 		#c0ffffff   #00000000   std

MENU COLOR msg07		   37;40 		#90ffffff   #00000000   std



MENU WIDTH 80

MENU MARGIN 10

MENU PASSWORDMARGIN 3

MENU ROWS 12

MENU TABMSGROW 18

MENU CMDLINEROW 18

MENU ENDROW -1

MENU PASSWORDROW 11

MENU TIMEOUTROW 20

MENU HELPMSGROW 22

MENU HELPMSGENDROW -1

MENU HIDDENROW -2

MENU HSHIFT 0

MENU VSHIFT 0


#2 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 10 November 2009 - 11:24 PM

Can you try MENU INCLUDE instead of INCLUDE?

INCLUDE filename [tagname]
MENU INCLUDE filename [tagname]

Include the contents of the configuration file filename at
this point.

In the case of MENU INCLUDE, the included data is only seen by
the menu system; the core syslinux code does not parse this
command, so any labels defined in it are unavailable.

If a tagname is included, the whole file is considered to have
been bracketed with a MENU BEGIN tagname ... MENU END pair,
and will therefore show up as a submenu.

Can you upload a iso (only the ISOLINUX files, not the ARC files)?

#3 homes32

homes32

    Gold Member

  • .script developer
  • 1035 posts
  • Location:Minnesota
  •  
    United States

Posted 11 November 2009 - 01:15 AM

ok problem seems to be solved.
I re-downloaded ISOLINUX and now it is working fine with INCLUDE. I can only think that a file must have gotten mixed around with an old version of ISOLINUX or something.

thank you for your quick reply!

#4 Icecube

Icecube

    Gold Member

  • Team Reboot
  • 1063 posts
  •  
    Belgium

Posted 11 November 2009 - 06:44 PM

You always need to update all files of Syslinux when you use a newer (or older) version.

You never should only update isolinux.bin or install syslinux and don't update the *.c32 modules. It can work, but it isn't recommended because it can be that they aren't compatible.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users