[syslinux] What extlinux -M does?

Jeffrey Hutzelman jhutz at cmu.edu
Sun Nov 27 20:55:56 PST 2011


On Sun, 2011-11-27 at 08:06 -0800, Regid Ichira wrote:
> --- On Sun, 11/27/11, Jeffrey Hutzelman <jhutz at cmu.edu> wrote:
> 
> > Essentially, -M behaves similarly to (but overrides) the DEFAULT
> > directive, but only with respect to the menu system (it does not
> > affect the command line) and only if 'MENU SAVE' is in effect.
> 
>   With /boot/extlinux/extlinux.conf containing:
> 
>     default 1
>     timeout 50
> 
>     label 0
>         Whatever chaining is required for MS
>     label 1
>         kernel old
>     label 2
>         kernel new
> 
> Will
>     extlinux -M 2 /boot/extlinux
> make the system boot new kernel once, after which old kernel will
> be used?

No.  Your configuration does not invoke the menu system, which is the
only thing affected by 'extlinux -M'.  It also does not use the 'menu
save' command, without which the menu system does not look at the saved
default.  See doc/menu.txt for more information on how to use the simple
menu system.

-- Jeff




More information about the Syslinux mailing list