]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years agomerge devmapper into luks
Vladimir 'phcoder' Serbinenko [Thu, 21 Apr 2011 09:59:51 +0000 (11:59 +0200)]
merge devmapper into luks

13 years agoSupport luksuuid specification
Vladimir 'phcoder' Serbinenko [Thu, 21 Apr 2011 09:58:06 +0000 (11:58 +0200)]
Support luksuuid specification

13 years agoDon't mount the same LUKS volume twice
Vladimir 'phcoder' Serbinenko [Thu, 21 Apr 2011 09:38:51 +0000 (11:38 +0200)]
Don't mount the same LUKS volume twice

13 years agosmall cleanup
Vladimir 'phcoder' Serbinenko [Thu, 21 Apr 2011 09:17:01 +0000 (11:17 +0200)]
small cleanup

13 years agoLUKS support based on work of Michael Gorven with some code from Clemens Fruhwirth...
Michael Gorven [Thu, 21 Apr 2011 09:14:29 +0000 (11:14 +0200)]
LUKS support based on work of Michael Gorven with some code from Clemens Fruhwirth and heavily cleaned up by me (phcoder)
Also-By: Clemens Fruhwirth <clemens@endorphin.org>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
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.

13 years ago * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 12:04:52 +0000 (14:04 +0200)]
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
useful grub_dprintf's.

13 years ago * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 12:01:12 +0000 (14:01 +0200)]
* include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.

13 years ago * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 11:18:11 +0000 (13:18 +0200)]
* util/grub.d/00_header.in: Don't use LANG unless unifont is available.

13 years ago Output errors if theme loading failed.
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 11:00:18 +0000 (13:00 +0200)]
Output errors if theme loading failed.

* grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
grub_gfxterm_fullscreen on error paths to ...
* grub-core/normal/menu.c (menu_init): ...here. Wait after showing
theme loading error.

13 years ago * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 10:33:46 +0000 (12:33 +0200)]
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
space for older compilers.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 10:29:49 +0000 (12:29 +0200)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
and report them as not RAID members since they are useless for GRUB.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.

13 years agoIgnore docs/stamp-1 and docs/version-dev.texi
Vladimir 'phcoder' Serbinenko [Wed, 6 Apr 2011 10:25:33 +0000 (12:25 +0200)]
Ignore docs/stamp-1 and docs/version-dev.texi

13 years ago Increase LVM implementation robustness in order not to crash on
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 14:28:14 +0000 (16:28 +0200)]
Increase LVM implementation robustness in order not to crash on
configurations like pvmove. Previously code assumed that in some places
only lvs or only pvs are used whereas it seems that they are used
interchangeably.

* grub-core/disk/lvm.c (read_node): New function.
(read_lv): Use read_node.
(grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
Match volumes only at the end when all lvs are found. Take both
pvs (first) and lvs (second) into account.
* include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
mirror_* into node_*. All users updated.
(grub_lvm_stripe): Merge this ...
(grub_lvm_mirror): ... and this ...
(grub_lvm_node): ... into this. All users updated.

13 years ago * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 13:57:44 +0000 (15:57 +0200)]
* grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
of function to allow further scanning for LVMs.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 13:45:20 +0000 (15:45 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
on failed seek as it breaks open fd reusage.

13 years ago * util/grub-install.in: Add a recommendation to use --recheck before
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 13:37:24 +0000 (15:37 +0200)]
* util/grub-install.in: Add a recommendation to use --recheck before
reporting bugs.

13 years ago * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 13:34:50 +0000 (15:34 +0200)]
* docs/grub.texi (Vendor power-on buttons): Explain how the numbers
are obtained.

13 years ago GRUB developper manual based on existing Internals section and
Vladimir 'phcoder' Serbinenko [Sun, 3 Apr 2011 13:30:28 +0000 (15:30 +0200)]
GRUB developper manual based on existing Internals section and
contributions by the various authors with active copyright assignment.

* docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
* docs/font_char_metrics.png: New file.
* docs/font_char_metrics.txt: Likewise.
* docs/grub-dev.texi: Likewise.
* docs/grub.texi (Internals): Move from here ...
* docs/grub-dev.texi: ... here.

13 years agoStore the loopback device as data on loopback grub_disk structures,
Colin Watson [Fri, 1 Apr 2011 16:04:10 +0000 (17:04 +0100)]
Store the loopback device as data on loopback grub_disk structures,
rather than the file it points to.  This fixes use of freed memory
if an existing loopback device is replaced.

* grub-core/disk/loopback.c (grub_loopback_open): Store dev in
disk->data, not dev->file.
(grub_loopback_read): Adjust file assignment to match.
Fixes Ubuntu bug #742967.

13 years ago* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
Colin Watson [Fri, 1 Apr 2011 14:35:09 +0000 (15:35 +0100)]
* grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
when replacing an existing device.

13 years ago Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
Vladimir 'phcoder' Serbinenko [Fri, 1 Apr 2011 13:53:06 +0000 (15:53 +0200)]
Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
memory corruptions.

* grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
unsigned.
(grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
(grub_jfs_blkno): Use 64-bit quantities for block sectors.
(grub_jfs_read_inode): Likewise.
(grub_jfs_opendir): Likewise. Remove now useless casts.
(grub_jfs_getent): Likewise.
Make ino a grub_uint32_t rather than int.
(grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
(grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
division and module with bit operations.
(grub_jfs_find_file): Make ino a grub_uint32_t.
(grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities

13 years ago* grub-core/normal/menu_entry.c (run): Quieten uninitialised
Colin Watson [Fri, 1 Apr 2011 10:43:51 +0000 (11:43 +0100)]
* grub-core/normal/menu_entry.c (run): Quieten uninitialised
  warning.  (This was in fact always initialised before use, but GCC
  wasn't smart enough to prove that.)
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.

13 years ago * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
Vladimir 'phcoder' Serbinenko [Thu, 31 Mar 2011 14:48:36 +0000 (16:48 +0200)]
* grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
stack alignment.
(efi_wrap_1): Likewise.
(efi_wrap_2): Likewise.
(efi_wrap_3): Likewise.
(efi_wrap_4): Likewise.
(efi_wrap_5): Likewise.
(efi_wrap_6): Likewise.
(efi_wrap_10): Likewise.
Based on information by: Red Hat/Peter Jones.

13 years ago* grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
Colin Watson [Thu, 31 Mar 2011 11:25:10 +0000 (12:25 +0100)]
* grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
set-but-not-used variable.

13 years ago* docs/grub.texi (Simple configuration): Be more explicit about
Colin Watson [Thu, 31 Mar 2011 07:46:41 +0000 (08:46 +0100)]
* docs/grub.texi (Simple configuration): Be more explicit about
GRUB_DEFAULT, and add an example.
Reported by: Leslie Rhorer.

13 years ago* docs/grub.texi (Commands): Link to "GRUB only offers a rescue
Colin Watson [Wed, 30 Mar 2011 19:52:26 +0000 (20:52 +0100)]
* docs/grub.texi (Commands): Link to "GRUB only offers a rescue
shell".

13 years ago * util/grub.d/10_linux.in: Add gentoo-specific config filename.
Alexey Shvetsov [Wed, 30 Mar 2011 18:53:23 +0000 (20:53 +0200)]
* util/grub.d/10_linux.in: Add gentoo-specific config filename.
* util/grub.d/20_linux_xen.in: Likewise.

13 years ago * util/grub.d/10_linux.in: Try alternative config filenames where
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 18:42:42 +0000 (20:42 +0200)]
* util/grub.d/10_linux.in: Try alternative config filenames where
we parse config file.
* util/grub.d/20_linux_xen.in: Likewise.

13 years ago * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
Alexey Shvetsov [Wed, 30 Mar 2011 17:22:28 +0000 (19:22 +0200)]
* util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
* util/grub.d/20_linux_xen.in: Likewise.

13 years ago * grub-core/disk/raid.c (insert_array): Add few potentially
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 14:54:11 +0000 (16:54 +0200)]
* grub-core/disk/raid.c (insert_array): Add few potentially
useful grub_util_info.
(grub_raid_register): Likewise.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 14:37:10 +0000 (16:37 +0200)]
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
Preserve partition number in mdadm code path.

13 years ago * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 11:13:25 +0000 (13:13 +0200)]
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
few potentially useful grub_util_info.

13 years agofix ChangeLog ordering
Colin Watson [Wed, 30 Mar 2011 11:07:43 +0000 (12:07 +0100)]
fix ChangeLog ordering

13 years ago * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 11:02:39 +0000 (13:02 +0200)]
* grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.

13 years ago* docs/grub.texi (default): Use @example rather than nested
Colin Watson [Wed, 30 Mar 2011 10:46:36 +0000 (11:46 +0100)]
* docs/grub.texi (default): Use @example rather than nested
itemized lists to avoid breaking gendocs.

13 years ago* docs/grub.texi (Future): Update.
Colin Watson [Wed, 30 Mar 2011 10:34:52 +0000 (11:34 +0100)]
* docs/grub.texi (Future): Update.

13 years ago* docs/grub.texi (Environment): New chapter.
<> [Wed, 30 Mar 2011 10:31:33 +0000 (11:31 +0100)]
* docs/grub.texi (Environment): New chapter.
(Changes from GRUB Legacy): Link to "Environment block" section for
details of limitations.
(Simple configuration): Likewise.  Link to documentation of gfxmode
and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
respectively.
(Shell-like scripting): Note that normal variables are stored in the
environment.
(gettext): Link to documentation of lang and locale_dir.
(list_env): New section.
(load_env): New section.
(save_env): New section.
(Reporting bugs): Fix typo.

13 years ago * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 07:35:35 +0000 (09:35 +0200)]
* docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
the example.

13 years ago * grub-core/term/at_keyboard.c (set_scancodes)
Vladimir 'phcoder' Serbinenko [Wed, 30 Mar 2011 07:26:23 +0000 (09:26 +0200)]
* grub-core/term/at_keyboard.c (set_scancodes)
[!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.