]> git.proxmox.com Git - grub2.git/log
grub2.git
12 years ago Handle big-endian minixfs (fixes minixfs tests on bigendian).
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:35:18 +0000 (21:35 +0200)]
Handle big-endian minixfs (fixes minixfs tests on bigendian).

* grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
modify names. Introduce MODE_BIGENDIAN.
* grub-core/fs/minix_be.c: New file.
* grub-core/fs/minix2_be.c: Likewise
* grub-core/fs/minix3_be.c: Likewise.
* Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
minix3_be.
* grub-core/Makefile.core.def (minix_be): New module.
(minix2_be): Likewise.
(minix3_be): Likewise.

12 years ago * grub-core/loader/efi/appleloader.c (devpath_7): New var.
Felix [Sun, 1 Apr 2012 19:30:24 +0000 (21:30 +0200)]
* grub-core/loader/efi/appleloader.c (devpath_7): New var.
(devs): Add MBP 2011.

12 years ago * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:27:17 +0000 (21:27 +0200)]
* grub-core/font/font.c (blit_comb): Handle dagesh somewhat.

12 years ago * grub-core/normal/cmdline.c (print_completion): New field
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:25:17 +0000 (21:25 +0200)]
* grub-core/normal/cmdline.c (print_completion): New field
prompt_len.
(grub_cmdline_get): Handle width properly.

12 years ago * grub-core/commands/lsacpi.c (options): Add missing terminator.
Vladimir 'phcoder' Serbinenko [Sun, 1 Apr 2012 19:22:48 +0000 (21:22 +0200)]
* grub-core/commands/lsacpi.c (options): Add missing terminator.

12 years ago * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 19:04:56 +0000 (21:04 +0200)]
* include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
after 29th of February.

12 years ago Fix exfat endianness handling.
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 17:04:13 +0000 (19:04 +0200)]
Fix exfat endianness handling.

* grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
(grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
(grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
Byte-swap utf16 when necessary.
(grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.

12 years ago Fix btrfs endianness handling.
Anton Blanchard [Sat, 31 Mar 2012 16:45:13 +0000 (18:45 +0200)]
Fix btrfs endianness handling.

* grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
(lower_bound): Make root uint64_t. Use root in le.
(grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
(find_path): Fix template key init.
(grub_btrfs_dir): Fix mtime byteswap.
* include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 16:38:29 +0000 (18:38 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
recursion_depth. Break infinite resursions. All users updated.

12 years ago * util/getroot.c (convert_system_partition_to_system_disk): Fix use
Vladimir 'phcoder' Serbinenko [Sat, 31 Mar 2012 10:27:10 +0000 (12:27 +0200)]
* util/getroot.c (convert_system_partition_to_system_disk): Fix use
after free.
Reported by: Peter Jones.

12 years ago * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
Anton Blanchard [Sat, 31 Mar 2012 10:08:50 +0000 (12:08 +0200)]
* grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8 bit values.

12 years ago * util/grub-install.in: Fix nvram call for PreP.
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:58:21 +0000 (17:58 +0200)]
* util/grub-install.in: Fix nvram call for PreP.

12 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:56:45 +0000 (17:56 +0200)]
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
the error when some elements are missing into a warning.

12 years ago * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
Vladimir 'phcoder' Serbinenko [Wed, 28 Mar 2012 15:54:54 +0000 (17:54 +0200)]
* grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.

12 years ago* docs/grub.texi (Invoking grub-probe): New section.
Colin Watson [Tue, 27 Mar 2012 23:37:00 +0000 (00:37 +0100)]
* docs/grub.texi (Invoking grub-probe): New section.
Reported by: Filipus Klutiero.  Fixes Debian bug #666031.

12 years ago Fix tab and wide character handling in editor and menu.
Vladimir 'phcoder' Serbinenko [Tue, 27 Mar 2012 15:07:26 +0000 (17:07 +0200)]
Fix tab and wide character handling in editor and menu.

* grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
agglomerate control characters with combining marks.
(bidi_line_wrap): Allow break on tab.
(grub_unicode_get_comb_start): New function.
* grub-core/normal/menu_entry.c: Restructure to handle wide characters
and tab correctly.
* grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
with a space.
* grub-core/normal/term.c (print_ucs4_terminal): New argument
fixed_tab_size. All users updated.
* include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
(grub_term_getcharwidth): Handle \t.
* include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
and copy.

12 years ago Handle big-endian mdraid.
Vladimir 'phcoder' Serbinenko [Mon, 26 Mar 2012 14:10:40 +0000 (16:10 +0200)]
Handle big-endian mdraid.

* Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
* grub-core/Makefile.core.def (mdraid09_be): New module.
* grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
rather than grub_le_to_cpu* and grub_cpu_to_le*.
* grub-core/disk/mdraid_linux_be.c: New file.

12 years ago * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
Vladimir 'phcoder' Serbinenko [Mon, 26 Mar 2012 14:07:42 +0000 (16:07 +0200)]
* grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.

12 years ago * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 15:30:16 +0000 (16:30 +0100)]
* util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
missing quotes which caused confusion among translators.

12 years ago * util/grub-mkconfig_lib.in: Fix typo.
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 15:27:59 +0000 (16:27 +0100)]
* util/grub-mkconfig_lib.in: Fix typo.

12 years ago * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 12:29:43 +0000 (13:29 +0100)]
* grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
spaces.
* tests/grub_script_leading_whitespace.in: New file.
* Makefile.util.def (grub_script_leading_whitespace): New test.

12 years ago * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 10:10:11 +0000 (11:10 +0100)]
* grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
to work.

12 years ago * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 10:07:28 +0000 (11:07 +0100)]
* grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
starts with control character.

12 years ago * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 09:59:16 +0000 (10:59 +0100)]
* grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
overflow.
(grub_gdb_outbuf): Likewise.

12 years ago * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
Vladimir 'phcoder' Serbinenko [Mon, 19 Mar 2012 09:56:43 +0000 (10:56 +0100)]
* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
zero terminator. Fixes a crash.

12 years ago * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 22:41:29 +0000 (23:41 +0100)]
* grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
beyond 4 GiB.
(grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
images independently of preffered adderss field.

12 years ago * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 22:36:35 +0000 (23:36 +0100)]
* grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
* grub-core/commands/regexp.c: Likewise.
* grub-core/loader/i386/linux.c: Likewise.
* grub-core/partmap/msdos.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.

12 years ago Add variable parsing in $"..." and fix several mismatches with bash.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:46:48 +0000 (14:46 +0100)]
Add variable parsing in $"..." and fix several mismatches with bash.

* Makefile.util.def (grub_script_gettext): New test.
* grub-core/script/execute.c (parse_string): New function.
(gettext_append): Likewise.
(grub_script_arglist_to_argv): Use gettext_append.
* grub-core/script/yylex.l: Fix slash and newline handling in $"...".
* tests/grub_script_gettext.in: New file.

12 years ago Fix handling of leading spaces in scripts.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:43:18 +0000 (14:43 +0100)]
Fix handling of leading spaces in scripts.

* 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.

12 years ago * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
Vladimir 'phcoder' Serbinenko [Sun, 11 Mar 2012 13:36:02 +0000 (14:36 +0100)]
* grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.

12 years ago * configure.ac: Bump up the version to beta2.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 22:52:47 +0000 (23:52 +0100)]
* configure.ac: Bump up the version to beta2.

12 years ago Fix gettext reload bugs (e.g. inability to disable gettext
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 22:25:34 +0000 (23:25 +0100)]
Fix gettext reload bugs (e.g. inability to disable gettext
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.

12 years ago * configure.ac: Decrease warning level to avoid spurious warnings and
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 20:30:37 +0000 (21:30 +0100)]
* configure.ac: Decrease warning level to avoid spurious warnings and
to be able to compile with GCC 4.2.
* Makefile.util.def: Remove -Wno-error=logical-op.

12 years ago * util/import_unicode.py: Add missing brackets around string for
William Bittner [Sat, 10 Mar 2012 19:47:12 +0000 (20:47 +0100)]
* util/import_unicode.py: Add missing brackets around string for
python 3 support.

12 years ago Fix efi chainloader on network root.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 19:41:28 +0000 (20:41 +0100)]
Fix efi chainloader on network root.

* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
network devices.
* grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
New function.

12 years ago * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 18:46:46 +0000 (19:46 +0100)]
* grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
unused show_text member.
* docs/grub.texi: Document "text" property.

12 years ago * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 17:02:53 +0000 (18:02 +0100)]
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
in dprintf.

12 years ago Fix IMSM handling on Fedora.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 17:01:01 +0000 (18:01 +0100)]
Fix IMSM handling on Fedora.

* util/getroot.c (grub_util_is_imsm): New function.
(grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.

12 years ago * Makefile.am: Strip gold section.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 15:55:48 +0000 (16:55 +0100)]
* Makefile.am: Strip gold section.
* conf/Makefile.common: Likewise.
* gentpl.py: Likewise.
* grub-core/Makefile.core.def: Likewise.
* grub-core/genmod.sh.in: Likewise.

12 years ago * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 14:21:25 +0000 (15:21 +0100)]
* util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
* util/grub.d/20_linux_xen.in: Likewise.
Based on Debian patch.

12 years ago * util/grub.d/10_linux.in: Fix syntax error resulting in
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 13:42:26 +0000 (14:42 +0100)]
* util/grub.d/10_linux.in: Fix syntax error resulting in
Richard Laager's patch.
* util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.

12 years ago * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 13:35:17 +0000 (14:35 +0100)]
* tests/partmap_test.in: Replace qemu-img usage with dd to decrease
dependencies.

12 years ago * util/grub.d/10_linux.in: Fix ZFS root passing.
Richard Laager [Sat, 10 Mar 2012 12:36:08 +0000 (13:36 +0100)]
* util/grub.d/10_linux.in: Fix ZFS root passing.

12 years ago * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:19:46 +0000 (13:19 +0100)]
* grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
* grub-core/commands/xnu_uuid.c: Likewise.
* grub-core/loader/efi/appleloader.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/script/main.c: Likewise.
* util/grub-mkfont.c: Likewise.

12 years ago * util/grub-mkfont.c (options): Use more appropriate "select" that
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:16:41 +0000 (13:16 +0100)]
* util/grub-mkfont.c (options): Use more appropriate "select" that
"set" for face index.

12 years ago * util/grub-editenv.c (options): Gettextize command summaries.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:12:45 +0000 (13:12 +0100)]
* util/grub-editenv.c (options): Gettextize command summaries.

12 years ago * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:10:07 +0000 (13:10 +0100)]
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
"out of memory" error messagge.

12 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:07:39 +0000 (13:07 +0100)]
* grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
of diskfilter for diskfilter on diskfilter support.

12 years ago * util/getroot.c (exec_pipe): Ensure that the child is not localised.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 12:05:21 +0000 (13:05 +0100)]
* util/getroot.c (exec_pipe): Ensure that the child is not localised.

12 years ago * util/grub-install.in: Check for themes/starfield/theme.txt and not
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 11:33:52 +0000 (12:33 +0100)]
* util/grub-install.in: Check for themes/starfield/theme.txt and not
themes/starfield.

12 years ago * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 11:31:42 +0000 (12:31 +0100)]
* grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.

12 years ago * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 11:27:00 +0000 (12:27 +0100)]
* grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.

12 years ago * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
Vladimir 'phcoder' Serbinenko [Sat, 10 Mar 2012 11:23:47 +0000 (12:23 +0100)]
* grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
of error message.

12 years ago * util/grub-install.in: Fix install non-PreP IEEE1275 install.
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 23:58:55 +0000 (00:58 +0100)]
* util/grub-install.in: Fix install non-PreP IEEE1275 install.

12 years ago * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 23:56:22 +0000 (00:56 +0100)]
* grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
message.
* util/grub-install.in: Fix anf gettextize error message.

12 years ago * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 18:09:05 +0000 (19:09 +0100)]
* util/grub-fstest.c (options): Replace N with NUM and S with STRING.
Gettextize.
* util/grub-mount.c (options): Likewise.

12 years ago * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 18:07:23 +0000 (19:07 +0100)]
* grub-core/commands/probe.c (options): Replace VAR with VARNAME and
gettextize.
* grub-core/commands/search_wrap.c (options): Likewise.

12 years ago * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 18:05:43 +0000 (19:05 +0100)]
* grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.

12 years ago * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 17:54:25 +0000 (18:54 +0100)]
* grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
size calculation.
* grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
none is known.

12 years ago * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 17:51:39 +0000 (18:51 +0100)]
* grub-core/net/net.c (grub_net_addr_to_str): Don't translate
"temporary" since it's used in identifier and is limited in space.

12 years ago * po/POTFILES.in: Regenerate. Include *.h since they contain
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 17:47:51 +0000 (18:47 +0100)]
* po/POTFILES.in: Regenerate. Include *.h since they contain
translatable strings as well.

12 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
Vladimir 'phcoder' Serbinenko [Thu, 8 Mar 2012 17:42:03 +0000 (18:42 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
byte-swap on big-endian.
Reported by: Lennart Sorensen

12 years ago * grub-core/loader/i386/linux.c (prot_init_space): New variable.
Vladimir 'phcoder' Serbinenko [Wed, 7 Mar 2012 22:45:20 +0000 (23:45 +0100)]
* grub-core/loader/i386/linux.c (prot_init_space): New variable.
(allocate_pages): Improve dprintf.
(grub_cmd_linux): Fill prot_init_space. Fix improper usage of
code32_start. Fill code32_start and kernel_alignment in params.
(grub_cmd_initrd): Use prot_init_space.

12 years ago * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 14:53:02 +0000 (15:53 +0100)]
* util/grub-mkstandalone.in: Propagate grub-mkimage.c change.

12 years ago * util/grub-install.in: Add missing dot at the end of sentence.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 14:45:30 +0000 (15:45 +0100)]
* util/grub-install.in: Add missing dot at the end of sentence.

12 years ago * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 14:04:33 +0000 (15:04 +0100)]
* grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
* grub-core/commands/videotest.c: Likewise.
* grub-core/loader/i386/linux.c: Likewise.

12 years ago * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 14:03:33 +0000 (15:03 +0100)]
* grub-core/commands/acpi.c (options): Fix a dot in the middle of the
sentence.
Reported by: Milo Casagrande.

12 years ago * grub-core/commands/acpi.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 13:11:10 +0000 (14:11 +0100)]
* grub-core/commands/acpi.c: Add TRANSLATORS comments.
* grub-core/commands/gptsync.c: Likewise.
* grub-core/commands/hashsum.c: Likewise.
* grub-core/commands/i386/pc/sendkey.c: Likewise.
* grub-core/commands/legacycfg.c: Likewise.
* grub-core/io/gzio.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/tests/test_blockarg.c: Likewise.
* grub-core/video/video.c: Likewise.
* util/grub-install.in: Likewise.
* util/grub-mkfont.c: Likewise.

12 years ago * util/grub-mkimage.c (help_filter): Add missing capitalisation.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 13:08:48 +0000 (14:08 +0100)]
* util/grub-mkimage.c (help_filter): Add missing capitalisation.

12 years ago * grub-core/commands/search_wrap.c (options): Fix a typo.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 13:07:00 +0000 (14:07 +0100)]
* grub-core/commands/search_wrap.c (options): Fix a typo.

12 years ago * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 13:06:14 +0000 (14:06 +0100)]
* util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
description.

12 years ago * util/grub-script-check.c (main): Fix a syntax error message which was
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 11:02:38 +0000 (12:02 +0100)]
* util/grub-script-check.c (main): Fix a syntax error message which was
unclear.

12 years ago * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 11:00:57 +0000 (12:00 +0100)]
* util/grub-mkrescue.in (usage): Fix ROM capitalisation.

12 years ago * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 10:59:39 +0000 (11:59 +0100)]
* grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
messages.

12 years ago * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 10:38:50 +0000 (11:38 +0100)]
* util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
without argument.
* util/grub-mount.c (options): Likewise.

12 years ago * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
Vladimir 'phcoder' Serbinenko [Tue, 6 Mar 2012 10:36:39 +0000 (11:36 +0100)]
* util/grub-mkimage.c (generate_image): Unify diskboot.img size message.

12 years ago * grub-core/net/http.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 15:42:26 +0000 (16:42 +0100)]
* grub-core/net/http.c: Add TRANSLATORS comments.
* grub-core/normal/cmdline.c: Likewise.
* grub-core/normal/misc.c: Likewise.
* grub-core/partmap/msdos.c: Likewise.
* grub-core/parttool/msdospart.c: Likewise.
* grub-core/script/execute.c: Likewise.
* grub-core/script/main.c: Likewise.
* grub-core/term/terminfo.c: Likewise.
* grub-core/video/bitmap.c: Likewise.
* util/grub-install.in: Likewise.
* util/grub-mkimage.c: Likewise.
* util/grub-mklayout.c: Likewise.
* util/grub-setup.c: Likewise.

12 years ago * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 15:39:16 +0000 (16:39 +0100)]
* util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
with similar messages in grub-fstest.

12 years ago * util/grub-install.in: Unify "option requires an argument" message
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 15:37:29 +0000 (16:37 +0100)]
* util/grub-install.in: Unify "option requires an argument" message
with similar messages in other files.
* util/grub-mkconfig.in: Likewise.

12 years ago * util/grub-set-default.in: Replace printf with gettext_printf (the
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 15:31:05 +0000 (16:31 +0100)]
* util/grub-set-default.in: Replace printf with gettext_printf (the
string in in question is already translated from grub-reboot)

12 years ago * configure.ac: Bump up the version to beta1.
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:50:43 +0000 (01:50 +0100)]
* configure.ac: Bump up the version to beta1.

12 years ago * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:35:58 +0000 (01:35 +0100)]
* grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
case when min_align = 0.

12 years ago * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:26:29 +0000 (01:26 +0100)]
* grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
and fix a case when line_start overflows.

12 years ago * util/grub-reboot.in (usage): Mention id posibility.
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:19:42 +0000 (01:19 +0100)]
* util/grub-reboot.in (usage): Mention id posibility.
* util/grub-set-default.in (usage): Likewise.

12 years ago * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:17:55 +0000 (01:17 +0100)]
* include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
* grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
* grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
* grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
* grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
* grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.

12 years ago * grub-core/commands/menuentry.c (options): Remove
Vladimir 'phcoder' Serbinenko [Mon, 5 Mar 2012 00:00:09 +0000 (01:00 +0100)]
* grub-core/commands/menuentry.c (options): Remove
GRUB_ARG_OPTION_REPEATABLE.
Reported by: Andreas Vogel

12 years ago * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
Andreas Vogel [Sun, 4 Mar 2012 23:41:37 +0000 (00:41 +0100)]
* grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.

12 years ago * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
Hideki EIRAKU [Sun, 4 Mar 2012 23:02:17 +0000 (00:02 +0100)]
* grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
error.

12 years ago Use sort -V by the idea of Georgi Georgiev.
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 22:13:16 +0000 (23:13 +0100)]
Use sort -V by the idea of Georgi Georgiev.

* util/grub-mkconfig_lib.in (version_sort): New function.
(version_test_numeric): Use version_sort.

12 years ago Use submenus in grub-mkconfig.
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 21:18:33 +0000 (22:18 +0100)]
Use submenus in grub-mkconfig.

* util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
* util/grub-mkconfig_lib.in (grub_quote): New function.
(gettext_printf): Use gettext and not gettext_quoted to fix several
messages.
* util/grub.d/10_hurd.in: Use submenus.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/10_netbsd.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/grub.d/10_illumos.in: Add missing quoting.
* util/grub.d/10_windows.in: Likewise.

12 years ago Fix menu title instability bug.
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 13:55:13 +0000 (14:55 +0100)]
Fix menu title instability bug.

* 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.

12 years ago * grub-core/script/execute.c (grub_script_return): Replace ambiguous
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 11:14:33 +0000 (12:14 +0100)]
* grub-core/script/execute.c (grub_script_return): Replace ambiguous
"scope" with "body".

12 years ago * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 11:13:05 +0000 (12:13 +0100)]
* include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
* grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
prot_size and prot_file_size.

12 years ago * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
Vladimir 'phcoder' Serbinenko [Sun, 4 Mar 2012 00:33:09 +0000 (01:33 +0100)]
* grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
All users updated. If easily=1 require raid-5/-6 to be full.
(is_node_readable): Likewise.
(scan_devices): Scan incomplete but readable LVs at the end.
(grub_diskfilter_memberlist): Pull missing devices.
(insert_array): Skip scanning until device is complete or scan is
done otherwise.
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
check.
* include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
* util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.

12 years ago Avoid EFI boot services when loading Linux.
Matthew Garrett [Sun, 4 Mar 2012 00:10:55 +0000 (01:10 +0100)]
Avoid EFI boot services when loading Linux.

* grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
avoid_efi_bootservices. All users updated.
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
argument avoid_efi_bootservices. All users updated.
Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
* grub-core/loader/i386/linux.c (allocate_pages): New arguments
align, min_align, relocatable, prefered_address. All users updated.
Allocate avoiding boot services if kernel is relocatable.
(grub_cmd_linux): Check if kernel is relocatable.
* grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
(grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
avoid_efi_boot_services.
(grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
* include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
(linux_kernel_params): Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago Use EDID on EFI.
Matthew Garrett [Sat, 3 Mar 2012 23:48:21 +0000 (00:48 +0100)]
Use EDID on EFI.

* grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
datasize_out.
* grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
modes. Set gop_handle.
(grub_video_gop_get_edid): New function.
(grub_gop_get_preferred_mode): Likewise.
(grub_video_gop_setup): Use grub_gop_get_preferred_mode.
(grub_video_efi_gop_adapter): Set .get_edid.
* include/grub/efi/edid.h: New file.
* include/grub/efi/efi.h (grub_efi_get_variable): Update proto.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
12 years ago * util/grub-install.in: Load efivars unconditionally.
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 22:15:18 +0000 (23:15 +0100)]
* util/grub-install.in: Load efivars unconditionally.

12 years agomerge mainline into reloc
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 20:47:00 +0000 (21:47 +0100)]
merge mainline into reloc

12 years ago * po/Rules-piglatin: Change suffix from .po-update-en to
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 20:43:06 +0000 (21:43 +0100)]
* po/Rules-piglatin: Change suffix from .po-update-en to
.po-update-en-piglatin.

12 years agoFix FTBFS on mips and ppc
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 19:53:54 +0000 (20:53 +0100)]
Fix FTBFS on mips and ppc