]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years ago * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 20:29:27 +0000 (22:29 +0200)]
* grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
on error if not already done.

13 years ago Fix few potential memory misusage.
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 20:26:52 +0000 (22:26 +0200)]
Fix few potential memory misusage.

* grub-core/font/font.c (load_font_index): Don't free char_index to
avoid double free.

13 years ago * docs/grub.texi (Installation): Fix several outdated claims.
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 15:50:48 +0000 (17:50 +0200)]
* docs/grub.texi (Installation): Fix several outdated claims.

13 years ago Handle module_license on windows.
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 15:47:59 +0000 (17:47 +0200)]
Handle module_license on windows.

* util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
sections shifted.
(insert_string): Make argument const char * instead of char *.
(write_section_data): Handle long section names.
Handle module_license.

13 years ago * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 10:14:00 +0000 (12:14 +0200)]
* grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
handle class-free menuentries.
(grub_normal_add_menu_entry): Add a check to be sure.

13 years ago * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
Vladimir 'phcoder' Serbinenko [Sat, 14 May 2011 10:09:16 +0000 (12:09 +0200)]
* grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
PgUp and PgDown.

13 years ago * configure.ac: Bump version to 1.99.
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 19:50:18 +0000 (21:50 +0200)]
* configure.ac: Bump version to 1.99.

13 years ago Give ATA device a bit more time on first try in order to allow disks
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 19:41:18 +0000 (21:41 +0200)]
Give ATA device a bit more time on first try in order to allow disks
to spin up.

* grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
if dev->present is 1. Reset dev->present on failure.
(grub_ata_device_initialize): Set dev->present to 1.
* include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
(grub_ata_device): New member 'present'.

13 years ago * util/grub-mkimage.c (generate_image): Update hash.
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 19:31:00 +0000 (21:31 +0200)]
* util/grub-mkimage.c (generate_image): Update hash.

13 years ago Flush caches on DMA memory.
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 18:56:50 +0000 (20:56 +0200)]
Flush caches on DMA memory.

* grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
* grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
(grub_dma_free): Likewise.
* include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.

13 years ago * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 18:23:29 +0000 (20:23 +0200)]
* grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
to avoid asm treating ld and sd as macros.

13 years ago * grub-core/boot/mips/startup_raw.S: Flush cache after loading
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 13:35:06 +0000 (15:35 +0200)]
* grub-core/boot/mips/startup_raw.S: Flush cache after loading
decompressor.

13 years ago * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 13:20:16 +0000 (15:20 +0200)]
* grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
grub_decompress_core since later would fail if grub_decompress_core
is too far.

13 years ago * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
Vladimir 'phcoder' Serbinenko [Fri, 13 May 2011 13:17:02 +0000 (15:17 +0200)]
* grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
R_MIPS_JALR since it's used by newer compiler.

13 years ago * util/grub.d/10_linux.in: Correctly handle the Linux in root.
Vladimir 'phcoder' Serbinenko [Tue, 10 May 2011 08:40:22 +0000 (10:40 +0200)]
* util/grub.d/10_linux.in: Correctly handle the Linux in root.

13 years ago * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
Vladimir 'phcoder' Serbinenko [Tue, 10 May 2011 07:14:41 +0000 (09:14 +0200)]
* grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
file_path to 0 for surety.
(grub_chainloader_boot): Set exit_data to NULL.
Unset the loader once done.
(grub_cmd_chainloader): Fix confusing error message if file is empty.

13 years ago * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 17:33:03 +0000 (19:33 +0200)]
* grub-core/term/at_keyboard.c (fetch_key): Make a printf on
unknown key into a dprintf.

13 years ago * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 16:59:35 +0000 (18:59 +0200)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
on first non-existant partition.

13 years agoFix surname spelling in Changelog
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 16:50:25 +0000 (18:50 +0200)]
Fix surname spelling in Changelog

13 years ago * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 16:48:50 +0000 (18:48 +0200)]
* grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
openning fails.
Reported by: Mark Korenberg.

13 years ago * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 16:46:51 +0000 (18:46 +0200)]
* grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
overflow.

13 years ago * util/grub-mkimage.c (main): Explicitely flush and sync the output
Vladimir 'phcoder' Serbinenko [Mon, 9 May 2011 14:27:09 +0000 (16:27 +0200)]
* util/grub-mkimage.c (main): Explicitely flush and sync the output
before closing to ensure that it will be readable by grub-setup.

13 years ago * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
Vladimir 'phcoder' Serbinenko [Thu, 5 May 2011 11:34:03 +0000 (13:34 +0200)]
* grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
(devpath_1): Use MAKE_PIWG_PATH.
(devpath_2): Likewise.
(devpath_3): Likewise.
(devpath_4): Likewise.
(devpath_5): Likewise.
(devpath_6): Likewise.

The appleldr.mod was checked that to be binary identical to previous
version.

13 years ago Support 2010 Macbooks.
Zach [Thu, 5 May 2011 10:18:00 +0000 (12:18 +0200)]
Support 2010 Macbooks.

* grub-core/loader/efi/appleloader.c (devpath_6): New variable.
(devs): Add devpath_6.

13 years ago * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
Vladimir 'phcoder' Serbinenko [Wed, 4 May 2011 23:32:04 +0000 (01:32 +0200)]
* util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
/dev/random. /dev/urandom is good enough for our purposes (salting).

13 years ago * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
Vladimir 'phcoder' Serbinenko [Wed, 4 May 2011 23:29:21 +0000 (01:29 +0200)]
* util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.

13 years ago * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
Vladimir 'phcoder' Serbinenko [Wed, 4 May 2011 23:27:54 +0000 (01:27 +0200)]
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
hexadecimal.

13 years ago * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
Vladimir 'phcoder' Serbinenko [Wed, 4 May 2011 23:26:16 +0000 (01:26 +0200)]
* grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
and not 0 on failure.

13 years ago* grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
Colin Watson [Tue, 3 May 2011 17:03:05 +0000 (18:03 +0100)]
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
disk; otherwise grub_fs_probe will not fall back to the next
filesystem.
(grub_pxefs_open): Likewise, for consistency.
Reported and tested by: Ezekiel Grave.

13 years ago* tests/partmap_test.in: Don't hardcode path to parted.
Colin Watson [Tue, 3 May 2011 16:57:39 +0000 (17:57 +0100)]
* tests/partmap_test.in: Don't hardcode path to parted.
Reported by: Peter Hjalmarsson.  Fixes Savannah bug #33150.

13 years ago* docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
Colin Watson [Sun, 1 May 2011 19:04:02 +0000 (20:04 +0100)]
* docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
of `ls' to find out which devices are available.

13 years ago * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
Vladimir 'phcoder' Serbinenko [Mon, 25 Apr 2011 14:58:25 +0000 (16:58 +0200)]
* grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
than source address for efi mmap buffer.

13 years ago * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
Vladimir 'phcoder' Serbinenko [Mon, 25 Apr 2011 13:36:08 +0000 (15:36 +0200)]
* grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
wrong action on non-detecting the magic.

13 years ago * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
Vladimir 'phcoder' Serbinenko [Mon, 25 Apr 2011 13:29:41 +0000 (15:29 +0200)]
* grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
already supplied by another part of the module (fixes compilation on
FreeBSD).

13 years ago * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
Vladimir 'phcoder' Serbinenko [Mon, 25 Apr 2011 13:23:37 +0000 (15:23 +0200)]
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
match the one used by mdadm.

13 years ago* po/README: Add instructions for creating po/LINGUAS.
Colin Watson [Thu, 21 Apr 2011 14:47:58 +0000 (15:47 +0100)]
* po/README: Add instructions for creating po/LINGUAS.

13 years agoAdd "SEE ALSO" sections to most man pages. Fixes Debian bug
Colin Watson [Thu, 21 Apr 2011 14:17:48 +0000 (15:17 +0100)]
Add "SEE ALSO" sections to most man pages.  Fixes Debian bug
#551428.

* docs/man/grub-editenv.h2m (SEE ALSO): New section.
* docs/man/grub-emu.h2m (SEE ALSO): Likewise.
* docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
* docs/man/grub-install.h2m (SEE ALSO): Likewise.
* docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
* docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
* docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
* docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
* docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
* docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
* docs/man/grub-probe.h2m (SEE ALSO): Likewise.
* docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
* docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
* docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
* docs/man/grub-setup.h2m (SEE ALSO): Likewise.

13 years ago* grub-core/kern/emu/getroot.c
Colin Watson [Thu, 21 Apr 2011 09:26:29 +0000 (10:26 +0100)]
* grub-core/kern/emu/getroot.c
(grub_find_root_device_from_mountinfo): Remove non-virtual-device
test that was incorrectly reintroduced in r3214.
Reported by: Ian Dall.  Fixes Savannah bug #33133.

13 years agoFix stack pointer handling in 16-bit relocator.
Colin Watson [Wed, 20 Apr 2011 23:07:22 +0000 (00:07 +0100)]
Fix stack pointer handling in 16-bit relocator.

* grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
Fixes Ubuntu bug #683904.

13 years ago * configure.ac: Bump version to 1.99~rc2.
Vladimir 'phcoder' Serbinenko [Wed, 20 Apr 2011 07:23:55 +0000 (09:23 +0200)]
* configure.ac: Bump version to 1.99~rc2.

13 years ago * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
Vladimir 'phcoder' Serbinenko [Tue, 19 Apr 2011 23:37:48 +0000 (01:37 +0200)]
* include/grub/dl.h [ASM_FILE]: Adapt for assembly.
* grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
* grub-core/lib/x86_64/setjmp.S: Likewise.
* grub-core/lib/mips/setjmp.S: Likewise.
* grub-core/lib/powerpc/setjmp.S: Likewise.
* grub-core/lib/sparc64/setjmp.S: Likewise.

13 years ago * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
Vladimir 'phcoder' Serbinenko [Tue, 19 Apr 2011 23:32:21 +0000 (01:32 +0200)]
* grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
* grub-core/lib/efi/datetime.c: Likewise.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
Vladimir 'phcoder' Serbinenko [Tue, 19 Apr 2011 20:39:14 +0000 (22:39 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
New function.
(grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
* include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
* util/grub-setup.c (setup): Use grub_util_biosdisk_flush.

13 years ago * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
Vladimir 'phcoder' Serbinenko [Tue, 19 Apr 2011 20:31:50 +0000 (22:31 +0200)]
* grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
bitmap.
(grub_gfxterm_term_init): Likewise.

13 years ago Take into account the decorations the computing menu entry width.
Vladimir 'phcoder' Serbinenko [Mon, 18 Apr 2011 22:44:53 +0000 (00:44 +0200)]
Take into account the decorations the computing menu entry width.

* grub-core/gfxmenu/widget-box.c (get_border_width): New function.
(grub_gfxmenu_create_box): Register get_border_width.
* grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
if available.
* include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
get_border_width.

13 years ago * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
Endres Puschner [Mon, 18 Apr 2011 21:24:41 +0000 (23:24 +0200)]
* grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
Don't skip first class.

13 years ago * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
Vladimir 'phcoder' Serbinenko [Mon, 18 Apr 2011 21:10:19 +0000 (23:10 +0200)]
* grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
chunks.
* include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.

13 years ago Complete 64-bit division support.
Vladimir 'phcoder' Serbinenko [Mon, 18 Apr 2011 21:03:52 +0000 (23:03 +0200)]
Complete 64-bit division support.

* grub-core/kern/misc.c (grub_divmod64): Rename to ...
(grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
* include/grub/misc.h (grub_divmod64): Rename to ...
(grub_divmod64_full): ... this.
(grub_divmod64): New inline function.

13 years ago * util/grub-mkimage.c (generate_image): Add forgotten comma.
Vladimir 'phcoder' Serbinenko [Mon, 18 Apr 2011 15:47:21 +0000 (17:47 +0200)]
* util/grub-mkimage.c (generate_image): Add forgotten comma.

13 years ago * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
Vladimir 'phcoder' Serbinenko [Mon, 18 Apr 2011 07:31:13 +0000 (09:31 +0200)]
* util/grub-mkimage.c (generate_image): Update fwstart.img hash after
performing the necessary test.

13 years ago * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
Vladimir 'phcoder' Serbinenko [Sat, 16 Apr 2011 15:24:47 +0000 (17:24 +0200)]
* Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
(kfreebsd.elf): Likewise.
(pc-chainloader.elf): Likewise.
(ntldr.elf): Likewise.

13 years ago Identify RAID by its UUID rather than (guessed) name.
Vladimir 'phcoder' Serbinenko [Sat, 16 Apr 2011 13:27:35 +0000 (15:27 +0200)]
Identify RAID by its UUID rather than (guessed) name.

* grub-core/disk/raid.c (ascii2hex): New function.
(grub_raid_open): Accept mduuid/%s specification.
* grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
(get_mdadm_uuid): ... this.
(grub_util_get_grub_dev): Use mduuid/%s if UUID is available.

13 years ago * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
Vladimir 'phcoder' Serbinenko [Sat, 16 Apr 2011 07:16:44 +0000 (09:16 +0200)]
* grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
to negative size.

13 years ago* util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
Colin Watson [Wed, 13 Apr 2011 11:57:26 +0000 (12:57 +0100)]
* util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
btrfs subvolume.
* util/grub.d/20_linux_xen.in: Likewise.

13 years agoRewrite /proc/self/mountinfo handling to cope with bind-mounts and
Colin Watson [Wed, 13 Apr 2011 11:36:04 +0000 (12:36 +0100)]
Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
move-mounts appearing out of order.  Fixes Ubuntu bug #738345.

* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Build a list of relevant visible mounts using the mnt_id and
parent_mnt_id fields, and then scan that list at the end.

13 years ago* docs/grub.texi (normal): New section.
Colin Watson [Tue, 12 Apr 2011 12:23:19 +0000 (13:23 +0100)]
* docs/grub.texi (normal): New section.
(normal_exit): New section.
(Embedded configuration): Add reference to normal.
(GRUB only offers a rescue shell): Likewise.
* docs/grub-dev.texi (Error Handling): Fix typo.

13 years ago* NEWS: Drop obsolete entry about probe-only btrfs support.
Colin Watson [Tue, 12 Apr 2011 10:44:35 +0000 (11:44 +0100)]
* NEWS: Drop obsolete entry about probe-only btrfs support.

13 years ago* util/import_gcry.py: Fix typo.
Colin Watson [Tue, 12 Apr 2011 10:39:17 +0000 (11:39 +0100)]
* util/import_gcry.py: Fix typo.

13 years ago * NEWS: Add btrfs support.
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 21:30:15 +0000 (23:30 +0200)]
* NEWS: Add btrfs support.

13 years ago BtrFS support. Written by me (Vladimir) with important bugfixes and
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 21:26:41 +0000 (23:26 +0200)]
BtrFS support. Written by me (Vladimir) with important bugfixes and
even more important testing by Colin.

* Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
* grub-core/Makefile.core.def (btrfs): Add crc.c.
* grub-core/fs/btrfs.c: Stub replaced with real implementation.
* grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
mem_input_off and mem_input. All users updated to accept in-RAM input.
(gzio_seek): New function.
(test_zlib_header): Likewise.
(grub_gzio_read): Likewise.
(grub_zlib_decompress): Likewise.
* grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
Accept partial and non-virtual mounts.
(grub_guess_root_device): Do rescanning after device_from_mountinfo to
avoid receiving /dev/dm-X as device.
* grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
Handle bind and partial mounts.
* grub-core/lib/crc.c: New file.
* include/grub/deflate.h: Likewise.
* include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
proto.
* include/grub/lib/crc.h: New file.

13 years ago Implement automatic module license checking according to new GNU
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 21:01:51 +0000 (23:01 +0200)]
  Implement automatic module license checking according to new GNU
guidelines.

* grub-core/kern/dl.c (grub_dl_check_license): New function.
(grub_dl_load_core): Use grub_dl_check_license.
* include/grub/dl.h (GRUB_MOD_SECTION): New macro.
(GRUB_MOD_LICENSE): Likewise.
(GRUB_MOD_DUAL_LICENSE): Likewise.
All modules updated.

13 years ago* grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
Colin Watson [Mon, 11 Apr 2011 15:06:37 +0000 (16:06 +0100)]
* grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
reserved_first_sector to 1.  btrfs reserves plenty of space for boot
loaders.
Reported by: Gene Cumm.  Fixes Ubuntu bug #757446.

13 years agomerge mainline into butter
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:56:31 +0000 (07:56 +0200)]
merge mainline into butter

13 years agouse actually filled extent size if available
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:53:21 +0000 (07:53 +0200)]
use actually filled extent size if available

13 years agoTake extent offset in account on uncompressed extents
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:52:39 +0000 (07:52 +0200)]
Take extent offset in account on uncompressed extents

13 years agoFix filename comparison
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:51:15 +0000 (07:51 +0200)]
Fix filename comparison

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 ago * util/grub-fstest.c (cmd_cmp): Check that sizes match.
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:41:59 +0000 (07:41 +0200)]
* util/grub-fstest.c (cmd_cmp): Check that sizes match.

13 years ago * util/grub-fstest.c (read_file): Report GRUB error if file opening
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:40:53 +0000 (07:40 +0200)]
* util/grub-fstest.c (read_file): Report GRUB error if file opening
failed.

13 years ago * grub-core/kern/file.c (grub_file_open): Don't take into account the
Vladimir 'phcoder' Serbinenko [Mon, 11 Apr 2011 05:38:42 +0000 (07:38 +0200)]
* grub-core/kern/file.c (grub_file_open): Don't take into account the
parenthesis in the middle of the filename.

13 years ago * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
Vladimir 'phcoder' Serbinenko [Sun, 10 Apr 2011 14:44:11 +0000 (16:44 +0200)]
* grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
rather than trying to put initrd way too high.
Reported by: Ryan Lortie <desrt@desrt.ca>

13 years ago * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
Vladimir 'phcoder' Serbinenko [Sun, 10 Apr 2011 14:12:31 +0000 (16:12 +0200)]
* grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
improperly removed string.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
Vladimir 'phcoder' Serbinenko [Sun, 10 Apr 2011 14:08:58 +0000 (16:08 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
is_disk.
(grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
(open_device) Likewise.
(grub_util_biosdisk_close): Likewise.
Reported by: Mark Korenberger.

13 years ago * util/grub-mkconfig_lib.in: Add missing quotes.
Alexander Kurtz [Sun, 10 Apr 2011 13:30:45 +0000 (15:30 +0200)]
* util/grub-mkconfig_lib.in: Add missing quotes.

13 years ago * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
Colin Watson [Sun, 10 Apr 2011 13:25:52 +0000 (15:25 +0200)]
* grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
is NULL.

13 years ago Dynamically count the number of lines for the lower banner.
Vladimir 'phcoder' Serbinenko [Sun, 10 Apr 2011 11:56:23 +0000 (13:56 +0200)]
Dynamically count the number of lines for the lower banner.

* grub-core/normal/menu_entry.c (per_term_screen): New member
num_entries.
(print_down): Use num_entries.
(update_screen): Likewise.
(grub_menu_entry_run): Set num_entries.
* grub-core/normal/menu_text.c (menu_viewer_data): New member
num_entries.
(grub_print_message_indented): Move real part to ...
(grub_print_message_indented_real): ... here. Additional argument
dry_run.
(draw_border): Additional argument num_entries.
(print_message): Additional argument dry_run.
(print_entries): Receive menu viewer data.
(grub_menu_init_page): New argment num_entries.
(menu_text_set_chosen_entry): Use num_entries.
(grub_menu_try_text): Likewise.
* grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
All users updated.
(grub_ucs4_count_lines): New function.
* include/grub/term.h (grub_term_cursor_x): Moved from here ..
* grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
* include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
(grub_term_border_height): Likewise.
(grub_term_num_entries): Likewise.

13 years ago * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
Vladimir 'phcoder' Serbinenko [Sun, 10 Apr 2011 09:57:19 +0000 (11:57 +0200)]
* grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
Remove now unused string.

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 ago* docs/grub-dev.texi (Finding your way around): Update for 1.99
Colin Watson [Sat, 9 Apr 2011 02:39:47 +0000 (03:39 +0100)]
* docs/grub-dev.texi (Finding your way around): Update for 1.99
build system.
(Getting started): GRUB is developed in Bazaar now, not Subversion.

(Comment): Fix typo.
(Getting started): General copy-editing.
(Typical Development Experience): Likewise.
(Error Handling): Likewise.
(Video API): Likewise.

13 years ago* docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
Colin Watson [Sat, 9 Apr 2011 02:10:59 +0000 (03:10 +0100)]
* docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
throughout.

13 years ago * util/grub-mkimage.c (main): Handle special naming of yeeloong
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 14:00:23 +0000 (16:00 +0200)]
* util/grub-mkimage.c (main): Handle special naming of yeeloong
directory.

13 years ago* docs/grub-dev.texi: Fix spelling of "developer" throughout.
Colin Watson [Fri, 8 Apr 2011 13:01:51 +0000 (14:01 +0100)]
* docs/grub-dev.texi: Fix spelling of "developer" throughout.
* grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
"development".

13 years ago * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:37:13 +0000 (14:37 +0200)]
* grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
grub_strcpy since the lines aren't necessarily 0-terminated.

13 years ago * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:32:41 +0000 (14:32 +0200)]
* grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
root on legacy.

13 years ago * grub-core/commands/probe.c (options): Argument to set isn't optional.
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:28:19 +0000 (14:28 +0200)]
* grub-core/commands/probe.c (options): Argument to set isn't optional.
(GRUB_MOD_INIT): DEVICE isn't optional.

13 years ago * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:25:44 +0000 (14:25 +0200)]
* grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
word on new line if it's too long anyway. Fixes a hang.

13 years ago * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:08:55 +0000 (14:08 +0200)]
* include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
const.
* util/grub-setup.c (main): Reuse md device name if available.
* util/raid.c (grub_util_raid_getmembers): Receive device name and
not GRUB name as argument.
Based on patch by: Florian Wagner <fwagner>.

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:04:24 +0000 (14:04 +0200)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Place mbi on low memory for better compatibility.

13 years ago * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 12:02:27 +0000 (14:02 +0200)]
* include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.

13 years agocorrect Changelog spelling
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 11:59:07 +0000 (13:59 +0200)]
correct Changelog spelling

13 years ago * autogen.sh: Ensure that collate and ctype locale is C.
Vladimir Serbinenko [Fri, 8 Apr 2011 11:57:56 +0000 (13:57 +0200)]
* autogen.sh: Ensure that collate and ctype locale is C.
* conf/Makefile.common: Likeiwise.

Also-By: Colin Watson <cjwatson@ubuntu.com>
13 years agorevert last revision. It's ineffective
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 11:18:27 +0000 (13:18 +0200)]
revert last revision. It's ineffective

13 years ago * grub-core/Makefile.am: Properly escape parenthesis in sed expressions.
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 10:13:44 +0000 (12:13 +0200)]
* grub-core/Makefile.am: Properly escape parenthesis in sed expressions.
Fixes Estonian locale.
Reported by: Leho Kraav.

13 years ago * grub-core/normal/menu.c: Add missing include.
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 10:12:02 +0000 (12:12 +0200)]
* grub-core/normal/menu.c: Add missing include.

13 years ago * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 10:06:55 +0000 (12:06 +0200)]
* grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.

13 years ago * util/grub-mkconfig.in: Ignore emacsen backup.
Martin Zuther [Fri, 8 Apr 2011 09:53:17 +0000 (11:53 +0200)]
* util/grub-mkconfig.in: Ignore emacsen backup.

13 years ago * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 09:49:38 +0000 (11:49 +0200)]
* grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
on open.
(grub_util_biosdisk_close): Likewise.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
Vladimir 'phcoder' Serbinenko [Fri, 8 Apr 2011 09:44:44 +0000 (11:44 +0200)]
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
const attribute and use grub_isdigit.

13 years ago* grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
Andrey [Wed, 6 Apr 2011 12:21:34 +0000 (14:21 +0200)]
* grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
gcc warning.