1. 27 Mar, 2015 1 commit
  2. 26 Jan, 2015 1 commit
  3. 21 Sep, 2014 3 commits
  4. 19 Jan, 2014 1 commit
  5. 21 Dec, 2013 1 commit
  6. 18 Dec, 2013 1 commit
  7. 10 Dec, 2013 1 commit
  8. 07 Dec, 2013 1 commit
    • Andrey Borzenkov's avatar
      use light-gray as default color in normal.mod for consistency · bb05e313
      Andrey Borzenkov authored
      Defalut font color on PC console seems to be light-gray; this is
      what user also gets in rescue prompt and what is defined as
      GRUB_TERM_DEFAULT_NORMAL_COLOR. But normal.mod defaults to white.
      This makes unpleasant visual effect as colors are changed after kernel
      is booted.
      
      Use the same color eveywhere for consistency and default to light-gray
      as this is also what at least Linux kernel is using by default.
      bb05e313
  9. 28 Nov, 2013 1 commit
    • Colin Watson's avatar
      Revamp hidden timeout handling · 8f236c14
      Colin Watson authored
      Add a new timeout_style environment variable and a corresponding
      GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig.  This
      controls hidden-timeout handling more simply than the previous
      arrangements, and pressing any hotkeys associated with menu entries
      during the hidden timeout will now boot the corresponding menu entry
      immediately.
      
      GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
      generates a warning, and if it shows the menu it will do so as if
      the second timeout were not present.  Other combinations are
      translated into reasonable equivalents.
      8f236c14
  10. 20 Oct, 2013 1 commit
  11. 14 May, 2013 1 commit
  12. 04 May, 2013 2 commits
  13. 28 Apr, 2013 1 commit
  14. 27 Apr, 2013 1 commit
  15. 20 Mar, 2013 1 commit
  16. 15 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from script reading and parsing. · 09fd6d82
      Colin Watson authored
      * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
      getline_data argument, passed to getline.
      * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
      getline_data argument, passed to grub_parser_split_cmdline.
      * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
      lexerstate->getline_data to lexerstate->getline.
      (grub_script_lexer_init): Add getline_data argument, saved in
      lexerstate->getline_data.
      * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
      argument, passed to grub_script_parse.
      * grub-core/script/script.c (grub_script_parse): Add getline_data
      argument, passed to grub_script_lexer_init.
      * include/grub/parser.h (grub_parser_split_cmdline): Update
      prototype.  Update all callers to pass appropriate getline data.
      (struct grub_parser.parse_line): Likewise.
      (grub_rescue_parse_line): Likewise.
      * include/grub/reader.h (grub_reader_getline_t): Add void *
      argument.
      * include/grub/script_sh.h (struct grub_lexer_param): Add
      getline_data member.
      (grub_script_parse): Update prototype.  Update all callers to pass
      appropriate getline data.
      (grub_script_lexer_init): Likewise.
      (grub_normal_parse_line): Likewise.
      
      * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
      data argument.
      * grub-core/kern/parser.c (grub_parser_execute: getline): Make
      static instead of nested.  Rename to ...
      (grub_parser_execute_getline): ... this.
      * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
      data argument.
      * grub-core/normal/main.c (read_config_file: getline): Make static
      instead of nested.  Rename to ...
      (read_config_file_getline): ... this.
      (grub_normal_read_line): Add unused data argument.
      * grub-core/script/execute.c (grub_script_execute_sourcecode:
      getline): Make static instead of nested.  Rename to ...
      (grub_script_execute_sourcecode_getline): ... this.
      * util/grub-script-check.c (main: get_config_line): Make static
      instead of nested.
      09fd6d82
  17. 28 Jun, 2012 1 commit
  18. 16 Jun, 2012 1 commit
  19. 31 May, 2012 1 commit
  20. 27 May, 2012 1 commit
  21. 11 Mar, 2012 2 commits
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix handling of leading spaces in scripts. · 9fdb2d7b
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
      	spaces.
      	* grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
      	other than skipping \r. All users updated.
      	* tests/grub_script_echo1.in: Add space-related tests.
      	* util/grub-menulst2cfg.c (main): Remove useless space skipping.
      9fdb2d7b
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix gettext reload bugs (e.g. inability to disable gettext · 17f38c0f
      Vladimir 'phcoder' Serbinenko authored
      	once enabled).
      
      	* grub-core/gettext/gettext.c: Encapsulate all static variables in
      	main_context and secondary_context. All functions updated.
      	(grub_gettext_translate): Rename to ...
      	(grub_gettext_translate_real): ... this. Return NULL on failed
      	translate.
      	(grub_gettext_translate): Handle secondary context.
      	(grub_gettext_delete_list): Close file and zero-out the context.
      	(grub_mofile_open): Don't call grub_gettext_delete_list.
      	Don't close file.
      	(grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
      	if locale="" to avoid pointless error message.
      	(grub_gettext_env_write_lang): Update lang even if load fails.
      	Handle secondary context.
      	(grub_gettext_reread_prefix): New function.
      	(read_main): Likewise.
      	(read_secondary): Likewise.
      	(GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
      	(GRUB_MOD_FINI): Handle secondary context. Don't close file.
      	* grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
      	* include/grub/normal.h (grub_gettext_reread_prefix): New proto.
      17f38c0f
  22. 05 Mar, 2012 1 commit
  23. 04 Mar, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix menu title instability bug. · d9bef9bc
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/menuentry.c (options): New option --id.
      	(grub_normal_add_menu_entry): New argument id. All users updated.
      	(grub_cmd_menuentry): Handle --id.
      	(grub_menu_init): Accept unknown arguments.
      	* grub-core/normal/main.c (features): Add feature_menuentry_id and
      	feature_menuentry_options.
      	* grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
      	saved_entry.
      	(get_entry_number): Match with id as well.
      	* include/grub/menu.h (grub_menu_entry): New member id.
      	* util/grub-mkconfig_lib.in (grub_get_device_id): New function.
      	* util/grub.d/00_header.in: Define menuentry_id_option.
      	* util/grub.d/10_hurd.in: Define id.
      	* util/grub.d/10_illumos.in: Likewise.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/10_windows.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      d9bef9bc
  24. 26 Feb, 2012 2 commits
    • Vladimir 'phcoder' Serbinenko's avatar
      Add new all_video module. · 22c7ce85
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
      	* grub-core/Makefile.core.def (all_video): New module.
      	* grub-core/genmoddep.awk: Generate dependency of all_video from
      	video.lst.
      	* grub-core/lib/fake_module.c: New file.
      	* grub-core/normal/main.c (features): Add feature_all_video_module.
      	* util/grub.d/00_header.in: Define locale_dir based on $prefix and
      	don't do explicit search again.
      	insmod all_video in load_video if available.
      22c7ce85
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type · 8b282ad2
      Vladimir 'phcoder' Serbinenko authored
      	to grub_ssize_t.
      	* grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
      	* include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
      8b282ad2
  25. 24 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/font/font.c (grub_font_load): Add support for default · 274416e8
      Vladimir 'phcoder' Serbinenko authored
      	path for fonts ($prefix/fonts).
      	* grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
      	for checking if string is a path.
      	* grub-core/normal/main.c (features): Add feature_default_font_path.
      	* util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
      	* util/grub.d/00_header.in: Use default directory if possible.
      	* util/grub-install.in: Install unicode.pf2.
      274416e8
  26. 12 Feb, 2012 1 commit
  27. 05 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Move platform-dependent files from $prefix to $prefix/$platform. · 92cd0f6e
      Vladimir 'phcoder' Serbinenko authored
      	* config.h.in (GRUB_TARGET_CPU): New definition.
      	(GRUB_PLATFORM): Likewise.
      	* configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
      	* grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
      	* grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
      	* grub-core/kern/dl.c (grub_dl_load): Likewise.
      	* grub-core/normal/autofs.c (read_fs_list): Likewise.
      	* grub-core/normal/crypto.c (read_crypto_list): Likewise.
      	* grub-core/normal/dyncmd.c (read_command_list): Likewise.
      	* grub-core/normal/term.c (read_terminal_list): Likewise.
      	* grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
      	$prefix/locale.
      	(grub_gettext_init_ext): Likewise.
      	* grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
      	grub_platform.
      	* util/grub-install.in: Update directories.
      	* util/grub-mknetdir.in: Likewise.
      	* util/grub-mkrescue.in: Likewise.
      92cd0f6e
  28. 23 Dec, 2011 1 commit
  29. 12 Nov, 2011 1 commit
  30. 12 Apr, 2011 1 commit
  31. 05 Apr, 2011 2 commits
  32. 23 Mar, 2011 1 commit
  33. 11 Jan, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Submenu default support. · dcb883b1
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
      	auto_boot. All users updated.
      	Declared static.
      	Handle chosen and default with submenus.
      	(grub_menu_execute_with_fallback): Declared static.
      	Don't notify failure if autobooted. Upper level does it.
      	(menuentry_eq): New function.
      	(get_entry_number): Use menuentry_eq.
      	(show_menu): New parameter "autobooted". All users updated.
      	(grub_show_menu): Likewise.
      	* include/grub/normal.h (grub_show_menu): Likewise.
      	* include/grub/menu.h (grub_menu_execute_entry): Removed.
      	(grub_menu_execute_with_fallback): Likewise.
      dcb883b1
  34. 21 Sep, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Support submenus. · fc55cc4c
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
      	parameter submenu. All users updated.
      	* grub-core/normal/main.c (free_menu): Rename to ...
      	(grub_normal_free_menu): ... this. Made global.
      	* grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
      	if requested.
      	* grub-core/normal/menu_entry.c (screen): New field submenu.
      	(make_screen): Set submenu.
      	(run): Open new context if requested.
      	* include/grub/menu.h (grub_menu_entry): New field submenu.
      	* include/grub/normal.h (grub_normal_free_menu): New proto.
      fc55cc4c