[syslinux] [PATCH] ifmemdsk.c32: Allow boot options based on presence of MEMDISK
Bernd Blaauw
bblaauw at home.nl
Mon Aug 8 11:02:40 PDT 2011
Op 8-8-2011 19:33, Shao Miller schreef:
> I don't follow. For the 'memdisk iso' scenario, INT 0x13, AH==0x08
> MEMDISK probe isn't going to work, as only the AH==0x4X functions
> work... So I would agree that one or both of '--mbfts' and
> '--safe-hooks' must be used in order to detect the MEMDISK. Nothing will
> "show" without '--info'.
As memdisk/ifmemdsk.c32 can detect it's currently being booted by
Isolinux these options could be implicit instead of a 'nothing
specified, nothing done'.
my very commandline for testing, inside the inner iso, was a:
/isolinux/ifmemdsk.c32 yes -- no
(followed by waiting for 'yes not found' or 'no not found')
as that wasn't a succes I expanded it to:
/isolinux/ifmemdsk.c32 --mbfts yes -- no
> So how about a '--find' option?:
sounds good.
> LABEL test1
> COM32 ifmemdsk.c32
> APPEND --mbfts --find test1 echo.c32 Found test1 -- echo.c32 No test1
> LABEL test2
> COM32 ifmemdsk.c32
> APPEND --mbfts --find test2=foo echo.c32 Found test2=foo -- echo.c32 No
> test2=foo
>
> Does that seem sensible? I'll probably wait for some hpa-approval of the
> current, basic incarnation before attempting a '--find' feature.
I'm confused by your test2 label, but in general it looks good yes.
Ideally I'd stick to a single config file but doubt it's possible as the
"IF.." / "KERNEL" modules/keywords can only execute programs and labels,
not keywords.
COM32 /isolinux/ifmemdsk.c32 --mbfts fdos -- showmenu
I'll stick to whatever works though, hopefully including a MBOOT.C32 at
some time that is able to set root before chaining :)
Switching to GRUB/Grub4dos/BURG/GRUB2/GRUB24DOS/BURG2 in either
uncompressed or compressed versions wasn't my intention :)
> - Shao Miller
Bernd
More information about the Syslinux
mailing list