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

12 years ago * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:11:00 +0000 (11:11 +0100)]
* gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
strip already transforms he format.

12 years ago * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
Vladimir 'phcoder' Serbinenko [Fri, 2 Mar 2012 10:08:33 +0000 (11:08 +0100)]
* conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.

12 years ago * util/grub-install.in: Add missing gettext init.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 23:40:02 +0000 (00:40 +0100)]
* util/grub-install.in: Add missing gettext init.
* 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.d/00_header.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

12 years ago * po/Rules-swiss: Fix header comment.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 23:38:11 +0000 (00:38 +0100)]
* po/Rules-swiss: Fix header comment.

12 years ago * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
Andreas Vogel [Wed, 29 Feb 2012 18:35:19 +0000 (19:35 +0100)]
* grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
resulted in leak of arguments.

12 years ago * grub-core/boot/i386/pc/startup_raw.S: Use separate
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 18:12:16 +0000 (19:12 +0100)]
* grub-core/boot/i386/pc/startup_raw.S: Use separate
reed_solomon_size const definition instead of computing it since
Apple assembler doesn't support the later.

12 years ago * gentpl.py (kernel): Rewrite Apple part.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 18:07:32 +0000 (19:07 +0100)]
* gentpl.py (kernel): Rewrite Apple part.

12 years ago * include/grub/kernel.h (FOR_MODULES): Check module magic.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 18:02:18 +0000 (19:02 +0100)]
* include/grub/kernel.h (FOR_MODULES): Check module magic.

12 years ago * util/grub-mkimagexx.c (locate_sections): Support non-standard
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 17:57:43 +0000 (18:57 +0100)]
* util/grub-mkimagexx.c (locate_sections): Support non-standard
ELF section gap.
(load_image): Likewise.

12 years ago * configure.ac: Fix a typo in previous commit.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 16:50:27 +0000 (17:50 +0100)]
* configure.ac: Fix a typo in previous commit.

12 years ago Don't add -Wl,-N on Apple platform.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 15:30:20 +0000 (16:30 +0100)]
Don't add -Wl,-N on Apple platform.

* configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
* conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N

12 years ago * grub-core/Makefile.core.def (lzma_decompress): Use
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 15:28:26 +0000 (16:28 +0100)]
* grub-core/Makefile.core.def (lzma_decompress): Use
TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.

12 years ago * grub-core/genmod.sh.in: Rewrite the Apple part.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 15:00:27 +0000 (16:00 +0100)]
* grub-core/genmod.sh.in: Rewrite the Apple part.

12 years ago * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:48:57 +0000 (15:48 +0100)]
* grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
comparison.

12 years ago * acinclude.m4 (grub_CHECK_PIC): New test.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:30:11 +0000 (15:30 +0100)]
* acinclude.m4 (grub_CHECK_PIC): New test.
* configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.

12 years ago * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:28:02 +0000 (15:28 +0100)]
* include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
to avoid the warning.

12 years ago * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:26:42 +0000 (15:26 +0100)]
* grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
(LOCAL(firstlist)): ... this. Move it before the firstlist and not
after. All users updated.

12 years ago Use the common size routine in hostfs so we can read disks as well.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:23:31 +0000 (15:23 +0100)]
Use the common size routine in hostfs so we can read disks as well.

* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
(grub_util_get_fd_size): ... this. Return size in bytes.
All users updated.
* grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
grub_util_get_fd_size.

12 years ago * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:17:59 +0000 (15:17 +0100)]
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Add blocksize retrieval.

12 years ago * configure.ac: Restore CFLAGS after efiemu check.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:12:31 +0000 (15:12 +0100)]
* configure.ac: Restore CFLAGS after efiemu check.

12 years ago * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:10:13 +0000 (15:10 +0100)]
* configure.ac: Move -fnested-functions to CPPFLAGS to workaround
Apple bug.

12 years ago * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:08:08 +0000 (15:08 +0100)]
* grub-core/Makefile.am (MACHO2IMG): Add missing variable.

12 years ago * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:06:39 +0000 (15:06 +0100)]
* grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
(grub_cmd_halt): Likewise.

12 years ago * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 14:00:54 +0000 (15:00 +0100)]
* grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
for local arithmetics.
Break %sp init into 2 instructions.
Add 0 byte at the end.

12 years ago * grub-core/disk/diskfilter.c (read_segment): Initialise err
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:57:59 +0000 (14:57 +0100)]
* grub-core/disk/diskfilter.c (read_segment): Initialise err
before loops.

12 years ago * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:56:51 +0000 (14:56 +0100)]
* grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
for context.

12 years ago * grub-core/disk/ldm.c (make_vg): Init part.name.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:55:09 +0000 (14:55 +0100)]
* grub-core/disk/ldm.c (make_vg): Init part.name.
(grub_ldm_detect): Silence spurious warning.
(grub_util_is_ldm): Likewise.

12 years ago * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:53:41 +0000 (14:53 +0100)]
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
sane value to avoid a spurious warning.

12 years ago * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:51:09 +0000 (14:51 +0100)]
* include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
(GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.

12 years ago * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:48:58 +0000 (14:48 +0100)]
* include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
* grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.

12 years ago * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:44:52 +0000 (14:44 +0100)]
* grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
hardcoding the relevant info.

12 years ago * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:42:20 +0000 (14:42 +0100)]
* grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
missing const qualifiers.
* grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.

12 years ago * util/getroot.c [__APPLE__]: Add missing includes.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:14:08 +0000 (14:14 +0100)]
* util/getroot.c [__APPLE__]: Add missing includes.
(grub_util_biosdisk_is_floppy): Fix usage of undefined variable.

12 years ago * util/grub-mkimage.c (generate_image): Silence spurious warning.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:12:41 +0000 (14:12 +0100)]
* util/grub-mkimage.c (generate_image): Silence spurious warning.

12 years ago * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:10:04 +0000 (14:10 +0100)]
* util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
avoid conflicts.

12 years ago * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:08:58 +0000 (14:08 +0100)]
* util/ieee1275/grub-ofpathname.c: Add missing config.h include.

12 years ago * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 13:07:53 +0000 (14:07 +0100)]
* util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
and grub_file_close call.

12 years ago Add LZSS Mach-O support (needed for new xnu kernelcache).
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 12:26:13 +0000 (13:26 +0100)]
Add LZSS Mach-O support (needed for new xnu kernelcache).

* grub-core/Makefile.core.def (xnu): Add file lzss.c
* grub-core/loader/lzss.c: New file.
* grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
on Mach-O open failure.
* grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
Don't free cmdsXX in uncompressedXX is set.
(grub_macho_file): Init new fields.
New argument is_64bit. All users updated.
Handle compressed. Error out if no suitable architecture is found.
Don't close file.
(grub_macho_open): New argument is_64bit. All users updated.
* grub-core/loader/macho32.c: Add defines for new fields.
* grub-core/loader/macho64.c: Likewise.
* grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
(grub_macho_parse): Handle compressed.
Defer actual processing if compressed.
(grub_macho_cmds_iterate): Decompress if compressed. New argument
"filename". All users updated.
(grub_macho_size): New argument "filename". All users updated.
(grub_macho_get_entry_point): Likewise.
(grub_macho_load): Handle compressed.
* include/grub/macho.h (grub_macho_lzss_header): New struct.
(GRUB_MACHO_LZSS_OFFSET): New define.
(grub_decompress_lzss): New proto.
* include/grub/machoload.h (grub_macho_file): New fields to handle
compressed.
(grub_macho_contains_macho64): Remove proto.
(grub_macho_contains_macho32): Likewise.
* util/grub.d/30_os-prober.in: Use kernel cache if available.

12 years ago * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
Vladimir 'phcoder' Serbinenko [Wed, 29 Feb 2012 11:45:32 +0000 (12:45 +0100)]
* grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.

12 years ago Fix make dist.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 11:58:57 +0000 (12:58 +0100)]
Fix make dist.

* Makefile.am (starfield_theme_files): New var.
(starfield_DATA): Use starfield_theme_files.
(EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
Add bootcheck-related files.
* conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
* docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
and font_char_metrics.txt.
* grub-core/Makefile.core.def (kernel): Update extra_dist.
(setjmp): Add lib/ia64/longjmp.S.
* po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
* po/POTFILES.in: Regenerate.
* po/Rules-swiss: use DISTFILES.common.extra2 and not
DISTFILES.common.extra1.
* util/devicemap.c: Removed.
* grub-core/lib/i386/relocator_backward.S: Likewise.
* util/import_gcry.py: Remove unused files. Add extra_dist for
ChangeLog.

12 years ago * grub-core/gettext/gettext.c (grub_mofile_open): Call
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:50:53 +0000 (11:50 +0100)]
* grub-core/gettext/gettext.c (grub_mofile_open): Call
grub_gettext_delete_list before changing grub_gettext_max to avoid
running out of array bounds.

12 years ago * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:12:32 +0000 (11:12 +0100)]
* grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
grub_vga_text_init/grub_vga_text_fini.

12 years ago * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 10:02:19 +0000 (11:02 +0100)]
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.

12 years ago * configure.ac: Bump to 2.00~beta0.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:28:40 +0000 (04:28 +0100)]
* configure.ac: Bump to 2.00~beta0.

12 years ago * util/getroot.c (grub_find_root_devices_from_btrfs): Add
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:25:13 +0000 (04:25 +0100)]
* util/getroot.c (grub_find_root_devices_from_btrfs): Add
missing initialisation.

12 years ago * grub-core/partmap/msdos.c (message_warn): Clarify messages.
Vladimir 'phcoder' Serbinenko [Tue, 28 Feb 2012 03:23:58 +0000 (04:23 +0100)]
* grub-core/partmap/msdos.c (message_warn): Clarify messages.