[syslinux] menu save
Bryan.James.Krone-EXT at jci.com
Bryan.James.Krone-EXT at jci.com
Tue Aug 23 06:32:34 PDT 2011
syslinux-bounces at zytor.com wrote on 08/01/2011 01:05:21 PM:
> [image removed]
>
> Re: [syslinux] fwrite?
>
> Gert Hulselmans
>
> to:
>
> For discussion of Syslinux and tftp-hpa
>
> 08/01/2011 01:07 PM
>
> Sent by:
>
> syslinux-bounces at zytor.com
>
> Please respond to For discussion of Syslinux and tftp-hpa
>
> Bryan.James.Krone-EXT at jci.com wrote:
> > Is there a mechanism already in Syslinux that would count the number
of
> > reboot of an OS? I'm working with an embedded OS and I would like to
> > reboot into another OS if the original fails to boot more than 10
times.
> >
> > Thanks for responding to my earlier question.
> >
>
> Yes, there is a mechanism.
>
> With the Syslinux/Extlinux installer, you can set the --once option to
the
> label, you only want to boot once (testing a new kernel).
> Next boot, the default label is booted.
>
> The following commands write the the ADV area of Syslinux:
> --once=... -o Execute a command once upon boot
> --clear-once -O Clear the boot-once command
> --reset-adv Reset auxilliary data
> --menu-save= -M Set the label to select as default on the next boot
>
> It should be relatively easy to modify Syslinux so it supports the
> counting, you need. Instead of only counting once.
>
> - Gert Hulselmans
>
> _______________________________________________
> Syslinux mailing list
> Submissions to Syslinux at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.
>
I used this command:
syslinux -M Windows --install /dev/sdb2
and my syslinux.cfg file looks like this:
DEFAULT advdump
LABEL Windows
COM32 chain.32
APPEND hd0 1
LABEL advdump
COM32 advdump.c32
Why doesn't syslinux boot the Windows label on the next boot?
More information about the Syslinux
mailing list