]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years agoAdd dprintfs to report chunk lookups
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:50:22 +0000 (07:50 +0200)]
Add dprintfs to report chunk lookups

13 years agoRemove stale comment about redundancy
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:49:26 +0000 (07:49 +0200)]
Remove stale comment about redundancy

13 years agoFix RAID1/duplicated chunk size calculation
Vladimir 'phcoder' Serbinenko [Sat, 9 Apr 2011 19:55:50 +0000 (21:55 +0200)]
Fix RAID1/duplicated chunk size calculation

13 years agoremove unused variable
Colin Watson [Wed, 23 Mar 2011 14:45:04 +0000 (14:45 +0000)]
remove unused variable

13 years agomerge trunk
Colin Watson [Thu, 17 Feb 2011 14:51:11 +0000 (14:51 +0000)]
merge trunk

13 years ago Workaround yet another IEEE1275 bug.
Vladimir 'phcoder' Serbinenko [Sat, 12 Feb 2011 07:22:55 +0000 (10:22 +0300)]
Workaround yet another IEEE1275 bug.

* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
* grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
is set.
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.

13 years ago * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
Vladimir 'phcoder' Serbinenko [Sat, 12 Feb 2011 06:59:04 +0000 (09:59 +0300)]
* grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
error.

13 years ago* util/grub.d/20_linux_xen.in: Bail out early if linux_list is
Colin Watson [Fri, 11 Feb 2011 13:00:54 +0000 (13:00 +0000)]
* util/grub.d/20_linux_xen.in: Bail out early if linux_list is
empty, since in that case we can only generate either nothing or a
syntactically invalid configuration file.
Reported by: Michal Suchanek.  Fixes Debian bug #612898.

13 years ago* docs/grub.texi (Kernel): Add reference to grub-mkrescue.
Colin Watson [Wed, 9 Feb 2011 12:14:10 +0000 (12:14 +0000)]
* docs/grub.texi (Kernel): Add reference to grub-mkrescue.
(Making a GRUB bootable CD-ROM): Likewise.
(Invoking grub-mkrescue): New section.
Reported by: Yann Dirson.  Fixes Debian bug #612585.

13 years ago* util/grub-install.in: Remove unnecessary brackets from tr
Colin Watson [Wed, 9 Feb 2011 11:23:11 +0000 (11:23 +0000)]
* util/grub-install.in: Remove unnecessary brackets from tr
arguments.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
Reported by: Jamie Heilman.  Fixes Debian bug #612564.

13 years ago* include/grub/file.h (not_easly_seekable): Rename to ...
Colin Watson [Tue, 8 Feb 2011 13:21:13 +0000 (13:21 +0000)]
* include/grub/file.h (not_easly_seekable): Rename to ...
(not_easily_seekable): ... this.  Update all users.

13 years agotypo
Colin Watson [Fri, 4 Feb 2011 16:35:07 +0000 (16:35 +0000)]
typo

13 years agoHandle empty dir passed to grub_find_root_device_from_mountinfo; fixes grub-mkrelpath...
Colin Watson [Fri, 4 Feb 2011 13:33:16 +0000 (13:33 +0000)]
Handle empty dir passed to grub_find_root_device_from_mountinfo; fixes grub-mkrelpath on btrfs subvolumes.

13 years ago* docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
Colin Watson [Fri, 28 Jan 2011 17:01:28 +0000 (17:01 +0000)]
* docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
grub-mkrescue.

13 years ago * util/grub-mkimage.c (generate_image): Refuse to create the images
Vladimir 'phcoder' Serbinenko [Mon, 24 Jan 2011 01:44:27 +0000 (02:44 +0100)]
* util/grub-mkimage.c (generate_image): Refuse to create the images
bigger than the actual flash (512K) in Loongson machines. 512K is also
the biggest chip supported by them.

13 years ago * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 14:37:05 +0000 (15:37 +0100)]
* grub-core/kern/emu/getroot.c: Include config-util.h explicitly.

13 years agoAdd missing ChangeLog entry
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 14:30:48 +0000 (15:30 +0100)]
Add missing ChangeLog entry

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
Anthony DeRobertis [Sat, 22 Jan 2011 14:20:08 +0000 (15:20 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
super_offset field.

13 years ago * util/grub-install.in: Ignore install device on platforms
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 14:10:29 +0000 (15:10 +0100)]
* util/grub-install.in: Ignore install device on platforms
where it doesn't make sense. Always use UUIDs except on pc, efi and
sparc64.
Reported by: Daniel Kahn Gillmor.

13 years ago * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 13:26:18 +0000 (14:26 +0100)]
* grub-core/bus/bonito.c (write_bases): Fix direction of the shift.

13 years ago * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 13:15:17 +0000 (14:15 +0100)]
* grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
(iterate_real): Don't rely on partition being non-NULL.

13 years ago * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 13:11:19 +0000 (14:11 +0100)]
* grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
supported platforms. Put a compile time assert for this rather than
generate a warning with 32-bit shift.

13 years ago * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 12:22:46 +0000 (13:22 +0100)]
* grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
logical expression more readable.

13 years ago * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
Vladimir 'phcoder' Serbinenko [Sat, 22 Jan 2011 12:18:05 +0000 (13:18 +0100)]
* grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
even if some elements have a name.
Reported by: Alexander GQ Gerasiov.

13 years ago* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
Colin Watson [Sat, 22 Jan 2011 01:26:49 +0000 (01:26 +0000)]
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
path unreadable if `grub-probe -t abstraction' fails, for example if
memberlist fails on an LVM volume group.
Reported by: Darius Jahandarie.

13 years ago* docs/grub.texi (Simple configuration): Document
Colin Watson [Sat, 22 Jan 2011 01:11:56 +0000 (01:11 +0000)]
* docs/grub.texi (Simple configuration): Document
GRUB_PRELOAD_MODULES.

13 years ago* .bzrignore: Remove nonexistent grub-pbkdf2.
Colin Watson [Mon, 17 Jan 2011 12:48:07 +0000 (12:48 +0000)]
* .bzrignore: Remove nonexistent grub-pbkdf2.

13 years ago * configure.ac: Bump version to 1.99~rc1.
Vladimir 'phcoder' Serbinenko [Sun, 16 Jan 2011 11:54:03 +0000 (12:54 +0100)]
* configure.ac: Bump version to 1.99~rc1.

13 years ago * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
Vladimir 'phcoder' Serbinenko [Sat, 15 Jan 2011 20:58:21 +0000 (21:58 +0100)]
* util/grub-mkimage.c (generate_image): Check fwstart.img checksum
for safety.

13 years ago * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
Vladimir 'phcoder' Serbinenko [Fri, 14 Jan 2011 18:23:34 +0000 (19:23 +0100)]
* grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
module.

13 years ago * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
Vladimir 'phcoder' Serbinenko [Fri, 14 Jan 2011 18:21:06 +0000 (19:21 +0100)]
* grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.

13 years ago * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
Vladimir 'phcoder' Serbinenko [Thu, 13 Jan 2011 21:25:56 +0000 (22:25 +0100)]
* grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
diskdevid.

13 years ago Fix compilation on cygwin.
Vladimir 'phcoder' Serbinenko [Thu, 13 Jan 2011 21:23:49 +0000 (22:23 +0100)]
Fix compilation on cygwin.

* conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
-R .drectve on cygwin.
* conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
* configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
(COND_CYGWIN): New condition.
* grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
* grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
not @TARGET_OBJ2ELF@.
* util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
type to determine whether aux is to be used.

13 years agoResolve the device returned by grub_find_root_device_from_mountinfo or
Colin Watson [Wed, 12 Jan 2011 23:27:52 +0000 (17:27 -0600)]
Resolve the device returned by grub_find_root_device_from_mountinfo or
find_root_device_from_libzfs using grub_find_device.
Reported by: Roderich Schupp.

13 years ago * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 18:58:32 +0000 (19:58 +0100)]
* util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
realpath'ed device string.
Handle floppy (somewhat).
Issue error in unknown case rather than garbage.
Reported by: Axel Beckert.

13 years ago * util/grub.d/00_header.in (load_video): Handle the case when no video
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 18:51:19 +0000 (19:51 +0100)]
* util/grub.d/00_header.in (load_video): Handle the case when no video
drivers available.
Thanks to: Axel Beckert.

13 years ago * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 11:49:16 +0000 (12:49 +0100)]
* util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
variable. Fixes problem on big endian platforms.

13 years ago * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 10:55:52 +0000 (11:55 +0100)]
* grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
It doesn't work well there.

13 years ago * grub-core/normal/context.c (grub_env_context_close): Silence spurious
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 10:52:51 +0000 (11:52 +0100)]
* grub-core/normal/context.c (grub_env_context_close): Silence spurious
warning.
* grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
* grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
counter.

13 years ago Use alias->path rather than buggy "canon".
Vladimir 'phcoder' Serbinenko [Wed, 12 Jan 2011 10:26:28 +0000 (11:26 +0100)]
Use alias->path rather than buggy "canon".

* grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
(ofdisk_hash_add): New argument curcan. All users updated.

13 years ago* configure.ac: Fall back to `true' if `makeinfo' does not exist.
Colin Watson [Tue, 11 Jan 2011 23:49:27 +0000 (17:49 -0600)]
* configure.ac: Fall back to `true' if `makeinfo' does not exist.

13 years ago * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
Vladimir 'phcoder' Serbinenko [Tue, 11 Jan 2011 22:01:07 +0000 (23:01 +0100)]
* grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
loadmask before doing any calculations. Use correct type for offset.
(grub_linux_load64): Likewise.

13 years agomerge trunk
Colin Watson [Tue, 11 Jan 2011 16:00:45 +0000 (10:00 -0600)]
merge trunk

13 years ago* util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
Colin Watson [Tue, 11 Jan 2011 15:08:57 +0000 (09:08 -0600)]
* util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
with NULL.
(console_grub_equivalences_unshift): Likewise.
Reported by: Daniel Dehennin.

13 years ago * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
Vladimir 'phcoder' Serbinenko [Tue, 11 Jan 2011 10:51:05 +0000 (11:51 +0100)]
* grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
(set_env_limn_ro): Likewise.
(GRUB_MOD_INIT): Likewise.
* grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
ARRAY_SIZE while on it.
(GRUB_MOD_FINI): Change to ARRAY_SIZE.
* grub-core/normal/context.c (grub_env_export): Move from here ...
* grub-core/kern/env.c (grub_env_export): ... here.
* grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
prefix.
* grub-core/kern/main.c (grub_main): Export root and prefix.
* include/grub/env.h (grub_env_export): Export.
Reported by: Seth Goldberg.

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 23:44:56 +0000 (00:44 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Take into account space used by ELF sections and multiboot palette.
Reported by: Grégoire Sutre.

13 years ago * BUGS: New file.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 23:06:01 +0000 (00:06 +0100)]
* BUGS: New file.

13 years ago Pass more appropriate video id to Linux.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 23:02:01 +0000 (00:02 +0100)]
Pass more appropriate video id to Linux.

* grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
grub_video_get_driver_id and variable gfxpayloadforcelfb to
fill have_vga.
(grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
shift params->lfb_size.
* include/grub/i386/linux.h: Make an enume out of have_vga values.

13 years ago * util/grub-menulst2cfg.c: Add missing include of misc.h.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:57:49 +0000 (23:57 +0100)]
* util/grub-menulst2cfg.c: Add missing include of misc.h.

13 years ago * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:56:11 +0000 (23:56 +0100)]
* grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
separator and pass bootpath/devid even if only one of them is available.
Reported by: Seth Goldberg.

13 years ago Don't use post-4G memory on EFI even if 64-bit since some non-compliant
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:51:10 +0000 (23:51 +0100)]
Don't use post-4G memory on EFI even if 64-bit since some non-compliant
implementations bug on them.

* grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
memory.
(filter_memory_map): Likewise.

13 years ago * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:41:58 +0000 (23:41 +0100)]
* util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
Reported by: nebuchadnezzar.

13 years ago * util/grub-kbdcomp.in: Add missing transform and bindir variables.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:31:27 +0000 (23:31 +0100)]
* util/grub-kbdcomp.in: Add missing transform and bindir variables.
Reported by: nebuchadnezzar.

13 years ago Submenu default support.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 22:27:58 +0000 (23:27 +0100)]
Submenu default support.

* grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
auto_boot. All users updated.
Declared static.
Handle chosen and default with submenus.
(grub_menu_execute_with_fallback): Declared static.
Don't notify failure if autobooted. Upper level does it.
(menuentry_eq): New function.
(get_entry_number): Use menuentry_eq.
(show_menu): New parameter "autobooted". All users updated.
(grub_show_menu): Likewise.
* include/grub/normal.h (grub_show_menu): Likewise.
* include/grub/menu.h (grub_menu_execute_entry): Removed.
(grub_menu_execute_with_fallback): Likewise.

13 years ago * util/grub-mklayout.c (usage): Update help text.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 18:52:12 +0000 (19:52 +0100)]
* util/grub-mklayout.c (usage): Update help text.

13 years ago * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 18:25:00 +0000 (19:25 +0100)]
* grub-core/commands/legacycfg.c (legacy_file): Trim the line.

13 years ago * util/grub-menulst2cfg.c (main): Trim the line.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 18:20:50 +0000 (19:20 +0100)]
* util/grub-menulst2cfg.c (main): Trim the line.

13 years ago * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 16:54:21 +0000 (17:54 +0100)]
* grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
(grub_machine_init): Don't check amount of low memory as reportedly
INT 12h can be broken and if low memory is too low we wouldn't have
gotten into grub_machine_init anyway.

13 years ago * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 16:51:06 +0000 (17:51 +0100)]
* grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
(grub_machine_mmap_iterate): Take low memory into account

13 years ago * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 16:35:32 +0000 (17:35 +0100)]
* grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
badfs.
Reported by: TiCPU.

13 years ago * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
Vladimir 'phcoder' Serbinenko [Mon, 10 Jan 2011 16:28:29 +0000 (17:28 +0100)]
* grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
members errors.

13 years agoTeach grub-mkconfig to load fs modules for NetBSD.
Grégoire Sutre [Mon, 10 Jan 2011 00:08:40 +0000 (01:08 +0100)]
Teach grub-mkconfig to load fs modules for NetBSD.

13 years agoHandle openbsd and netbsd types being in part_bsd module.
Grégoire Sutre [Sun, 9 Jan 2011 22:23:25 +0000 (23:23 +0100)]
Handle openbsd and netbsd types being in part_bsd module.

13 years ago * config.h.in (_LARGEFILE_SOURCE): Add missing define.
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 19:22:32 +0000 (20:22 +0100)]
* config.h.in (_LARGEFILE_SOURCE): Add missing define.
(_FILE_OFFSET_BITS): Likewise.
Reported by: Seth Goldberg.

13 years agoCheck for libdevmapper header
Grégoire Sutre [Sat, 8 Jan 2011 16:01:38 +0000 (17:01 +0100)]
Check for libdevmapper header

13 years ago * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:56:09 +0000 (01:56 +0100)]
* grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
avoid aliasing.
(fzap_lookup): Likewise.
(dnode_get): Likewise.
(make_mdn): Likewise.
(zfs_mount): Likewise.
(fzap_iterate): Use temporary pointer to avoid aliasing.
(grub_zfs_read): Likewise.
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
* grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
pointers to avoid aliasing.
(grub_cmd_xnu_kernel64): Likewise.
(grub_xnu_load_driver): Likewise.

13 years ago * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:50:06 +0000 (01:50 +0100)]
* grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
aliasing warning.
(grub_cmd_terminal_output): Likewise.
Reported and tested by: Grégoire Sutre.

13 years ago * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:45:57 +0000 (01:45 +0100)]
* grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
warning.
Reported and tested by: Grégoire Sutre.

13 years ago * configure.ac: Do CPU substitution even if it's specified explicitly.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:44:38 +0000 (00:44 +0100)]
* configure.ac: Do CPU substitution even if it's specified explicitly.
Reported and tested by: Alain Greppin.

13 years ago * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:39:12 +0000 (00:39 +0100)]
* grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
Reported and tested by: Alain Greppin.

13 years ago Satisfy some bison versions need for inttypes.h.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:34:23 +0000 (00:34 +0100)]
Satisfy some bison versions need for inttypes.h.

* grub-core/lib/posix_wrap/inttypes.h: New file.
* grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
(int16_t): Likewise.
(int32_t): Likewise.
(int64_t): Likewise.
Reported and tested by: Alain Greppin.

13 years ago * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:27:38 +0000 (00:27 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
Silence spurious warning.
Reported and tested by: Alain Greppin.

13 years ago * docs/grub.texi (Support automatic decompression): Update with xz
Szymon Janc [Fri, 7 Jan 2011 21:42:02 +0000 (22:42 +0100)]
* docs/grub.texi (Support automatic decompression): Update with xz
decompression support.

13 years agomerge trunk
Colin Watson [Fri, 7 Jan 2011 17:26:15 +0000 (17:26 +0000)]
merge trunk

13 years agoAlways initialise *relroot in grub_find_root_device_from_mountinfo,
Colin Watson [Fri, 7 Jan 2011 17:24:25 +0000 (17:24 +0000)]
Always initialise *relroot in grub_find_root_device_from_mountinfo,
otherwise we free an uninitialised pointer if /proc is unmounted.
Reported by: Scott Moser.

13 years ago Improve loaders' kernel command line handling.
Szymon Janc [Fri, 7 Jan 2011 16:09:39 +0000 (17:09 +0100)]
Improve loaders' kernel command line handling.

* grub-core/lib/cmdline.c: New file.
* include/grub/lib/cmdline.h: Likewise.
* grub-core/loader/i386/linux.c (grub_cmd_linux): Use
grub_create_loader_cmdline to create kernel command line.
* grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
(linux): Add lib/cmdline.c on common.

13 years ago * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 16:06:42 +0000 (17:06 +0100)]
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
inopos might be unaligned.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 15:17:24 +0000 (16:17 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
endian transformations.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
Based on report by: Doug Nazar.

13 years ago * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
Doug Nazar [Fri, 7 Jan 2011 13:41:44 +0000 (14:41 +0100)]
* grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
array->members[i].start_sector.
* grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.

13 years ago * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 12:27:34 +0000 (13:27 +0100)]
* util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
Reported and tested by: Grégoire Sutre.

13 years ago* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
Colin Watson [Thu, 6 Jan 2011 13:24:38 +0000 (13:24 +0000)]
* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
avoid causing test failures by clearing the screen.

13 years ago* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Colin Watson [Thu, 6 Jan 2011 11:09:17 +0000 (11:09 +0000)]
* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Fix prefix check to handle the case where dir ends with a slash
(most significantly, "/" itself).
Reported by: Michael Vogt.

13 years ago Run terminfo_cls on initing terminfo output to clear the screen and
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 11:23:06 +0000 (12:23 +0100)]
Run terminfo_cls on initing terminfo output to clear the screen and
move the cursor to (0,0).

* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
Call grub_terminfo_output_init.
* grub-core/term/serial.c (grub_serial_term_output): Set .init.
* grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
* include/grub/terminfo.h (grub_terminfo_output_init): New declaration.

13 years ago * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:28:28 +0000 (01:28 +0100)]
* util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
only when needed.

13 years ago * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:25:01 +0000 (01:25 +0100)]
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
CTRL.

13 years ago The E820 type 5 is BADRAM, not EXEC_CODE.
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:14:32 +0000 (01:14 +0100)]
The E820 type 5 is BADRAM, not EXEC_CODE.

* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.
* grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
into reserved. Propagate BADRAM.
* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.

13 years ago * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 18:08:03 +0000 (19:08 +0100)]
* grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
Ignore the memory post-4G.
(grub_relocator_firmware_alloc_region): Additional debug statement.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 17:15:27 +0000 (18:15 +0100)]
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
names.
Reported by: David Pravec.

13 years agomerge trunk
Colin Watson [Tue, 4 Jan 2011 15:41:07 +0000 (15:41 +0000)]
merge trunk

13 years ago * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:42:47 +0000 (15:42 +0100)]
* grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
BIOSes.

13 years ago * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:39:59 +0000 (15:39 +0100)]
* grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
Prevent overflow.
(grub_reed_solomon_recover): Likewise.

13 years ago * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:37:10 +0000 (15:37 +0100)]
* grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.

13 years ago * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:35:10 +0000 (15:35 +0100)]
* grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
variable.

13 years ago* grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
Colin Watson [Tue, 4 Jan 2011 13:05:19 +0000 (13:05 +0000)]
* grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
descriptions of extract_legacy_entries_source and
extract_legacy_entries_configfile.
Reported by: Seung Soo, Ha.

13 years ago* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
Colin Watson [Mon, 3 Jan 2011 23:56:45 +0000 (23:56 +0000)]
* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
on devices that do not implement function 0.

13 years ago * grub-core/fs/hfsplus.c: Make parent unsigned.
Dave Vasilevsky [Mon, 3 Jan 2011 14:30:41 +0000 (15:30 +0100)]
* grub-core/fs/hfsplus.c: Make parent unsigned.
(grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
overflows.
(grub_hfsplus_cmp_extkey): Likewise

13 years ago * util/grub-install.in: Correctly use bootloader_id and not
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:33:43 +0000 (14:33 +0100)]
* util/grub-install.in: Correctly use bootloader_id and not
GRUB_DISTRIBUTOR on efibootmgr line.

13 years ago * util/grub-mkfont.c (main): Report errors in FT_New_Face.
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:16:42 +0000 (14:16 +0100)]
* util/grub-mkfont.c (main): Report errors in FT_New_Face.

13 years ago* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
Ian Campbell [Fri, 31 Dec 2010 22:49:42 +0000 (22:49 +0000)]
* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
Xen and reorder menu item wording to make it clearer that this entry
will launch Xen.  Print separate messages when loading Xen and
Linux.

13 years ago * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:00:45 +0000 (15:00 +0100)]
* grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
(amiga_partition_map_iterate): Check "PART" magic to avoid a very long
loop in case of incorrect amiga partmap.