jmblack
2002-Nov-16 03:03 UTC
[syslinux] Dynamic Menu based on what isolinux can read fromyour local filesystem
Unfortunately not, I should have prefaced my syntax with "I wish we could just..." -jmblack> -----Original Message----- > From: G. Murali Krishnan [mailto:gmkrishn at cs.uchicago.edu] > Sent: Friday, November 15, 2002 9:02 PM > To: jmblack > Cc: syslinux at zytor.com > Subject: RE: [syslinux] Dynamic Menu based on what isolinux can read > fromyour local filesystem > > > > If I understood him correctly what he wants is basically this... > > > > if exist multi(0)disk(0)rdisk(0)partition(1)\WINDOWS (label 2 > > kernel memdisk > > append initrd=rescue.img) > > > > if not exist multi(0)disk(0)rdisk(0)partition(1)\WINDOWS (label 2 > > kernel memdisk > > append initrd=install.img) > > If you structured the isolinux config correctly isolinux (syslinux, > > pxelinux) could build dynamic menus based on the contents of local > > devices. > > The COMBOOT will answer my problem. But my problem aside, is > it possible > to do something like > > If multi(0)disk(0)rdisk(0)partition(1) has type c (label 2 > kernel memdisk > initrd=winstall.img) > > If multi(0)disk(0)rdisk(0)partition(1) has type 82 (label 2 > kernel memdisk > initrd=linstall.img) > > Ofcourse "c" is the type of Win95 FAT32 partition and "82" > Linux Native, > and multi(0)disk(0)rdisk(0)partition(1) is /dev/hda1 is linux > terminology. > > I am trying wrap my head around the expressive power of isolinux.cfg. > Basically, can we take some run time decisions, just by structuring > isolinux.cfg correctly? > > The only runtime decision it can take, AFAIK is "if no key > pressed within > X seconds, then run this image else run image specified at prompt". > > - Murali > > ################################################################ > # Ry 254, Ryerson Hall, # Ph : +1 773 702-1031 (Off) # > # 1100 E 58th Street # +1 773 575-4836 (Cell) # > # Chicago, IL - 60637, # URL : http://www.g-murali.com # > # USA. # email: gmkrishn at cs.uchicago.edu # > ################################################################ > >