Bean wrote: > Hi, > > Update: > > Add timeout, progressbar and savedefault. > > savedefault: > > Variable savedefault set the system default value. If savedefault=1, > save the current boot item. > > You can also overwrite the default value for individual items, in > menuentry statement --save option always save this item, and --nosave > never save the item. If neither --save nor --nosave is specified, the > system default in savedefault variable is checked. > > Why do you need this over having a normal save_env? I don't see any reason to prefer an ad-hoc here over general solution > In the menu section, use property save=1 or save=0 to achieve the same > effect as --save and --nosave. > > You also need to set the environment file, default value is > ${prefix}/env, you can also use envfile variable to overwrite it. > > timeout: > > Use timeout variable to control auto boot. For example: > > set timeout=5 > > it would boot the default item if no key is pressed in 5 seconds. If > timeout=0, boot the default item immediately, although you can press a > key at startup to halt the auto boot. If timeout is not set, auto boot > is disabled. > > progressbar: > > This works in conjunction with timeout. When a timeout value is set, > you can see the process bar at bottom of screen. > > As with this version, all feature from grub legacy has been > implemented. There is a grub.cfg inside the menu directory that shows > some usage: > > set superusers=admin > password admin admin > password user user > > set timeout=5 > > set envfile=/menu/env > set savedefault=1 > load_env > > menuentry Item1 --users user --nosave --class image_tools { > true > } > > menuentry Item2 --save --class image_about { > true > } > > . /menu/menu_efi.cfg > > >
-- Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel