1. 21 Sep, 2014 3 commits
  2. 26 Oct, 2013 1 commit
  3. 14 May, 2013 1 commit
  4. 05 May, 2013 2 commits
  5. 20 Mar, 2013 1 commit
  6. 16 Jan, 2013 1 commit
  7. 11 Mar, 2012 1 commit
    • 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
  8. 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
  9. 09 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix `help' with unloaded modules. · e4e37e8d
      Vladimir 'phcoder' Serbinenko authored
      	* include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
      	* grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
      	(grub_dyncmd_dispatcher): Small stylistic fix.
      	* grub-core/commands/help.c (grub_cmd_help): Load missing modules when
      	explicit help is requested.
      e4e37e8d
  10. 14 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Remove defines pertaining to arbitrary limits not affecting GRUB · 75b49ebe
      Vladimir 'phcoder' Serbinenko authored
      	anymore.
      
      	* grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
      	(EXT2_MAX_SYMLINKCNT): Likewise.
      	* grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
      	* grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
      	* include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
      	(GRUB_PXE_MAX_BLKSIZE): Likewise.
      	* include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
      	* include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
      	(DN_MAX_OBJECT_SHIFT): Likewise.
      	(DN_MAX_OFFSET_SHIFT): Likewise.
      	(DN_MAX_OBJECT): Likewise.
      	(DNODES_PER_LEVEL_SHIFT): Likewise.
      	* include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
      	(SPA_MAXBLOCKSIZE): Likewise.
      	(SPA_BLOCKSIZES): Likewise.
      	* include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
      	(MZAP_MAX_BLKSZ): Likewise.
      75b49ebe
  11. 10 Apr, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Dynamically count the number of lines for the lower banner. · 8b8a81fa
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/normal/menu_entry.c (per_term_screen): New member
      	num_entries.
      	(print_down): Use num_entries.
      	(update_screen): Likewise.
      	(grub_menu_entry_run): Set num_entries.
      	* grub-core/normal/menu_text.c (menu_viewer_data): New member
      	num_entries.
      	(grub_print_message_indented): Move real part to ...
      	(grub_print_message_indented_real): ... here. Additional argument
      	dry_run.
      	(draw_border): Additional argument num_entries.
      	(print_message): Additional argument dry_run.
      	(print_entries): Receive menu viewer data.
      	(grub_menu_init_page): New argment num_entries.
      	(menu_text_set_chosen_entry): Use num_entries.
      	(grub_menu_try_text): Likewise.
      	* grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
      	All users updated.
      	(grub_ucs4_count_lines): New function.
      	* include/grub/term.h (grub_term_cursor_x): Moved from here ..
      	* grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
      	* include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
      	(grub_term_border_height): Likewise.
      	(grub_term_num_entries): Likewise.
      8b8a81fa
  12. 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
  13. 21 Sep, 2010 2 commits
    • 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
    • Vladimir 'phcoder' Serbinenko's avatar
      Rename jail to extractor · a38b701c
      Vladimir 'phcoder' Serbinenko authored
      a38b701c
  14. 20 Sep, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Pause the execution (10s max) if any errors are displayed so the user · 38c259a7
      Vladimir 'phcoder' Serbinenko authored
      	has a chance to see them.
      
      	* grub-core/kern/err.c (grub_err_printed_errors): New variable.
      	(grub_print_error): Increment grub_err_printed_errors.
      	* grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
      	execution if any errors were displayed.
      	(show_menu): Remove old code for pause.
      	* grub-core/normal/menu_entry.c (run): Likewise.
      	* grub-core/normal/term.c (grub_normal_char_counter): Removed. All
      	users updated.
      	(grub_normal_get_char_counter): Likewise.
      	* include/grub/err.h (grub_err_printed_errors): New external variable.
      	* include/grub/normal.h (grub_normal_get_char_counter): Removed.
      38c259a7
  15. 17 Sep, 2010 1 commit
  16. 12 Sep, 2010 2 commits
  17. 17 Aug, 2010 1 commit
  18. 06 May, 2010 1 commit
  19. 10 Apr, 2010 1 commit
  20. 23 Mar, 2010 3 commits
  21. 16 Mar, 2010 2 commits
  22. 02 Mar, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-03-01 Vladimir Serbinenko <phcoder@gmail.com> · c6f2fe52
      Vladimir 'phcoder' Serbinenko authored
      	Wait for user entry basing on presence of output rather than on errors.
      
      	* include/grub/normal.h (grub_normal_get_line_counter): New proto.
      	(grub_install_newline_hook): Likewise.
      	* normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
      	* normal/menu.c (show_menu): Check line_counter to determine presence
      	of output.
      	* normal/term.c (grub_normal_line_counter): New variable.
      	(grub_normal_get_line_counter): New function.
      	(grub_install_newline_hook): Likewise.
      c6f2fe52
  23. 07 Feb, 2010 2 commits
  24. 25 Dec, 2009 2 commits
  25. 24 Dec, 2009 2 commits
  26. 23 Dec, 2009 1 commit
  27. 21 Dec, 2009 1 commit
    • carles's avatar
      2009-12-20 Carles Pina i Estany <carles@pina.cat> · 7f39d92f
      carles authored
       
      	* include/grub/auth.h: Include `<grub/i18n.h>'.
      	(GRUB_GET_PASSWORD): Gettextizze string.
      	* include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
      	menu_text.c.
      	(grub_utf8_to_ucs4_alloc): Fix indentation.
      	(grub_print_ucs4): Likewise.
      	(grub_getstringwidth): Likewise.
      	(print_message_indented): New declaration.
      	* normal/auth.c: Include `<grub/i18n.h>'.
      	(grub_auth_check_authentication): Gettexttize string.
      	* normal/cmdline.c: Include `<grub/i18n.h>'.
      	(grub_cmdline_get): Gettextizze.
      	* normal/color.c: Include `<grub/i18n.h>'.
      	(grub_parse_color_name_pair): Gettexttize strings.
      	* normal/main.c (grub_normal_reader_init): Cleanup gettexttized
      	string (use `print_message_indented').
      	* normal/menu_text.c (STANDARD_MARGIN): Moved from here to
      	`include/grub/normal.h'.
      	(print_message_indented): Renamed to ...
      	(grub_print_message_indented): ... this. Remove `static' qualifer (now
      	used in normal/main.c).
      	(print_message): Use `grub_print_message_indented' instead of
      	`print_message_indented'.
      	(print_timeout): Likewise.
      	* normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
      	(grub_normal_print_device_info): Gettexttize strings.
      	* po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
      7f39d92f
  28. 20 Dec, 2009 2 commits
    • Vladimir 'phcoder' Serbinenko's avatar
    • carles's avatar
      2009-12-19 Carles Pina i Estany <carles@pina.cat> · b99518d1
      carles authored
      	* include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
      	(grub_print_ucs4_alloc): Likewise.
      	(grub_getstringwidth): Likewise.
      	* normal/main.c (grub_normal_init_page): Gettextize version string.
      	* normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
      	(getstringwidth): Renamed to ...
      	(grub_getstringwidth): ... this. Remove `static' qualifier (now used
      	in normal/main.c).  Use `grub_utf8_to_ucs4_alloc'.
      	(grub_print_ucs4): Remove `static' qualifer (now used in
      	normal/main.c).
      	* po/POTFILES: Add normal/main.c.
      b99518d1