]> git.proxmox.com Git - grub2.git/log
grub2.git
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

12 years agoFix compile error
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 19:12:03 +0000 (20:12 +0100)]
Fix compile error

12 years agoboot services avoid code based on the patch by Matthew Garrett
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 19:06:41 +0000 (20:06 +0100)]
boot services avoid code based on the patch by Matthew Garrett

12 years ago(no commit message)
Matthew Garrett [Sat, 3 Mar 2012 17:05:16 +0000 (18:05 +0100)]

12 years agoAdd a pig farm.
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 15:17:21 +0000 (16:17 +0100)]
Add a pig farm.

12 years ago * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 12:09:14 +0000 (13:09 +0100)]
* grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
"Command for ...".
* grub-core/commands/hdparm.c (options): Use "Display" rather than
"Check" since we don't check anything.
* grub-core/commands/i386/cpuid.c (options): Clarify that long mode
is 64-bit one.
* grub-core/commands/search_wrap.c (options): Clarify the conditions.
* grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
(grub_md_sha512_real): Likewise.

12 years ago * grub-core/commands/gptsync.c: Fix typographic quoting.
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 12:05:08 +0000 (13:05 +0100)]
* grub-core/commands/gptsync.c: Fix typographic quoting.
* grub-core/commands/ieee1275/suspend.c: Likewise.
* grub-core/commands/parttool.c: Likewise.
* grub-core/commands/search_wrap.c: Likewise.
* grub-core/commands/videoinfo.c: Likewise.
* grub-core/gfxmenu/gui_label.c: Likewise.
* grub-core/hello/hello.c: Likewise.
* grub-core/kern/emu/main.c: Likewise.
* grub-core/net/net.c: Likewise.
* grub-core/normal/menu.c: Likewise.
* grub-core/normal/menu_text.c: Likewise.
* grub-core/normal/misc.c: Likewise.
* util/grub-editenv.c: Likewise.
* util/grub-install.in: Likewise.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/grub-setup.c: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

12 years ago * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Sat, 3 Mar 2012 11:59:28 +0000 (12:59 +0100)]
* grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
* grub-core/commands/keystatus.c: Likewise.
* grub-core/commands/loadenv.c: Likewise.
* grub-core/commands/probe.c: Likewise.
* grub-core/commands/regexp.c: Likewise.
* grub-core/commands/true.c: Likewise.
* grub-core/commands/videoinfo.c: Likewise.
* grub-core/disk/cryptodisk.c: Likewise.
* grub-core/disk/ldm.c: Likewise.
* grub-core/disk/loopback.c: Likewise.
* grub-core/disk/luks.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.
* grub-core/kern/disk.c: Likewise.
* grub-core/kern/emu/hostdisk.c: Likewise.

12 years ago * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 20:08:38 +0000 (21:08 +0100)]
* grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
* util/grub-install.in: Add missing quote in the comment.

12 years ago * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 14:09:10 +0000 (15:09 +0100)]
* grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
* grub-core/commands/lsmmap.c: Likewise.
* grub-core/commands/minicmd.c: Likewise.
* grub-core/commands/mips/loongson/lsspd.c: Likewise.
* grub-core/commands/regexp.c: Likewise.
* grub-core/gdb/gdb.c: Likewise.
* grub-core/term/gfxterm.c: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mkfont.c: Likewise.
* util/grub-mklayout.c: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.

12 years ago * grub-core/commands/videoinfo.c (hook): Replace "Direct"
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 14:05:30 +0000 (15:05 +0100)]
* grub-core/commands/videoinfo.c (hook): Replace "Direct"
with "Direct color" and "Packed" with "Packed pixel".
(grub_cmd_videoinfo): Simplify legend.

12 years ago * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 13:58:53 +0000 (14:58 +0100)]
* util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
absolutely unclear error message.

12 years ago * util/grub-mkstandalone.in: Remove confusing leftover print.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 13:56:47 +0000 (14:56 +0100)]
* util/grub-mkstandalone.in: Remove confusing leftover print.

12 years ago * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:53:50 +0000 (11:53 +0100)]
* grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
comments.
* grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
(GRUB_MOD_INIT): Likewise.
* grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
VGA mode.
* grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
comments.
* util/grub-install.in (usage): Likewise.
Spell ID in whole letters.
Add missing ending dot.
Quote variables.
* util/grub-reboot.in: Fix capitalisation.
* util/grub-set-default.in: Likewise.

12 years ago * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:36:07 +0000 (11:36 +0100)]
* util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
(exec_pipe) [CYGWIN || MINGW32]: Likewise.
(find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
(find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
Disable -Werror for -Wdeprecated-declarations.
(grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
(get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
(grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
(grub_util_get_grub_dev): Make luks handling dependent on
HAVE_DEVICE_MAPPER and not __linux__.
(get_win32_path): Fix format security.
(grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
(grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
Don't try grub_find_zpool_from_dir.
(grub_make_system_path_relative_to_its_root) [!__linux__]:
#ifdef-out paresdir.

12 years ago * util/grub-pe2elf.c (usage): Add missing noreturn.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:27:48 +0000 (11:27 +0100)]
* util/grub-pe2elf.c (usage): Add missing noreturn.
(write_section_data): Rename name to shname to avoid shadowing.
(write_symbol_table): Rename name to symname to avoid shadowing.
Fix write_reloc_section call.

12 years ago * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:24:24 +0000 (11:24 +0100)]
* grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
to ensure that it's after the last byte of .text.

12 years ago * util/ieee1275/ofpath.c (my_isdigit): New function.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:21:01 +0000 (11:21 +0100)]
* util/ieee1275/ofpath.c (my_isdigit): New function.
(trailing_digits): Use my_isdigit.
(strip_trailing_digits): Likewise.

12 years ago * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:18:11 +0000 (11:18 +0100)]
* util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
* grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.

12 years ago * grub-core/kern/i386/pc/startup.S: Define __start.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:15:42 +0000 (11:15 +0100)]
* grub-core/kern/i386/pc/startup.S: Define __start.