[syslinux] Patch: Allow args with spaces

H. Peter Anvin hpa at zytor.com
Sun Dec 7 11:14:48 PST 2008


Sergey Vlasov wrote:
> 
> Good idea (unfortunately, not all machines can be flashed with memdisk
> due to compatibility issues with protected mode); however, the
> interface using a single long command line is not ideal.  The
> ethersel.c32 module does a similar thing with PCI device IDs, but
> reads the PCI ID list from a file.  IMHO this is better than using a
> long command line (which currently has a 2047 character limit).
> 
> Also it would be nice to have support for matching other DMI strings,
> not only system.product_name - so the file format should not have just
> two fields per line.  E.g., something like this:
> 
> # DMI system.product_name "ESPRIMO P5925" -- "memdisk initrd=/dos/FSC-E5925.img raw"
> # DMI system.product_name "ESPRIMO P7935" -- "memdisk initrd=/dos/FSC-P7935-108.img raw"
> 
> Other things might be possible - e.g., comparing bios.version with
> strvercmp() (if the format used by the vendor allows it); so maybe the
> current "starts_with" comparison operation should be made explicit:
> 
> # DMI system.product_name starts_with "ESPRIMO P5925" -- "memdisk initrd=/dos/FSC-E5925.img raw"
> # DMI system.product_name starts_with "ESPRIMO P7935" -- "memdisk initrd=/dos/FSC-P7935-108.img raw"
> 
> (and later add operations like "version_le", "string_le", etc.).
> 

Ultimately, we really do need a scripting language, i.e. hooking this
stuff up to the already-implemented Lua interpreter.

	-hpa




More information about the Syslinux mailing list