[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#505496: syslinux: default64 doesn't work after after reloading "config" file.



Package: syslinux
Version: 2:3.71+dfsg-5
Severity: normal

In the attached example (built with the script below), the idea is to automatically
load vesamenu from isolinux.cfg. Then it is possible to quit the vesa menu (to use
the F1 and F2 help screen. If one press "Enter", default or default64 should be run.

The way we quit vesamenu is to invoke "config menu.cfg".

The problem it's that before vesamenu.c32, default64 is obeyed... but after we quit
vesamenu.c32 the entry "default" is obeyed when a user press enter (even for amd64).


Franklin


Note: As a work around, in the attached "menu.cfg", it is possible to use 
"default run-autodetect" which uses ifcpu64.c32 for cpu detection.

--

  D=/tmp/TesT
  mkdir $D
  cp /usr/lib/syslinux/{dmitest.c32,ifcpu64.c32,solinux.bin,pcitest.c32,vesamenu.c32} $D/
  cp /tmp/{isolinux.cfg,menu.cfg}  $D/
  mkisofs -R -J -joliet-long -cache-inodes -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o /tmp/test.iso $D


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (200, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-openvz-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages syslinux depends on:
ii  dosfstools                 2.11-6        utilities for making and checking 
ii  libc6                      2.7-15        GNU C Library: Shared libraries
ii  mtools                     3.9.11-1      Tools for manipulating MSDOS files
ii  syslinux-common            2:3.71+dfsg-5 Kernel loader which uses a FAT, ex

syslinux recommends no packages.

syslinux suggests no packages.

-- no debconf information
prompt 1
say  press F1 or F2 for "help" screen
F1 isolinux.cfg
F2 menu.cfg


# Note that default 64 here doesn't work
default64 run-a64
default run-i32
#default run-autodetect
##It is possible to replace the "default run-i32" above with 
##"default run-autodetect" that works (well... except on virtual box)


label quit
	MENU LABEL Quit
	config menu.cfg

label run-a64
	menu default64
	kernel dmitest.c32

label run-i32
	menu default
	kernel pcitest.c32

label run-autodetect
	MENU HIDE
	kernel ifcpu64.c32
	append run-a64 -- run-i32

include menu.cfg
prompt 0
timeout 0
default vesamenu.c32
#Note that default64 does work here.
default64 vesamenu.c32


Reply to: