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

13 years ago* docs/grub.texi (Menu-specific commands): Remove some semantics
Colin Watson [Wed, 30 Mar 2011 02:49:22 +0000 (03:49 +0100)]
* docs/grub.texi (Menu-specific commands): Remove some semantics
that were true in GRUB Legacy but not in GRUB 2.
(submenu): New section.
(false): New section.
(read): New section.
(true): New section.

13 years ago* docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
Colin Watson [Wed, 30 Mar 2011 02:26:11 +0000 (03:26 +0100)]
* docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.

13 years agocredit
Colin Watson [Wed, 30 Mar 2011 02:22:37 +0000 (03:22 +0100)]
credit

13 years ago* docs/grub.texi (Simple configuration): Explain some of the
Colin Watson [Wed, 30 Mar 2011 02:20:09 +0000 (03:20 +0100)]
* docs/grub.texi (Simple configuration): Explain some of the
current limitations of grub-mkconfig.

13 years ago Old macs search for boot.efi rather than for bootia32.efi.
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 22:05:25 +0000 (00:05 +0200)]
Old macs search for boot.efi rather than for bootia32.efi.

* util/grub-install.in: Copy bootia32.efi to boot.efi.
* util/grub-mkrescue.in: Likewise.
Suggested by: Peter Jones.

13 years ago * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 19:12:13 +0000 (21:12 +0200)]
* util/grub.d/20_linux_xen.in: Accept old-style xen kernels.

13 years ago * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 18:33:32 +0000 (20:33 +0200)]
* include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
(grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
(grub_lvm_mirror): New struct.
* grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
(grub_lvm_iterate): Iterate only visible volumes.
(grub_lvm_read): Factor out to ..
(read_lv): ... this. Support mirrors.
(grub_lvm_read): New wrapper function.
(grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
stripped or mirrored.

13 years ago * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 17:47:34 +0000 (19:47 +0200)]
* util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.

13 years ago* docs/grub.texi (loopback): New section.
Colin Watson [Tue, 29 Mar 2011 17:08:23 +0000 (18:08 +0100)]
* docs/grub.texi (loopback): New section.

13 years ago* grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
Colin Watson [Tue, 29 Mar 2011 17:00:23 +0000 (18:00 +0100)]
* grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
removed -p option.

13 years ago* docs/grub.texi (BIOS installation): New section, partly based on
Colin Watson [Tue, 29 Mar 2011 13:32:38 +0000 (14:32 +0100)]
* docs/grub.texi (BIOS installation): New section, partly based on
previous text in other sections.
(Installing GRUB using grub-install): Replace BIOS discussion with a
cross-reference.
(Images): Likewise.

13 years ago * grub-core/kern/emu/hostdisk.c (find_partition_start)
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 13:00:23 +0000 (15:00 +0200)]
* grub-core/kern/emu/hostdisk.c (find_partition_start)
[HAVE_DIOCGDINFO]: Add safety checks.

13 years ago * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 10:01:48 +0000 (12:01 +0200)]
* util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
per default compiled in kernel and prior to 8.0 isn't shipped at all.

13 years ago* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
Colin Watson [Tue, 29 Mar 2011 09:51:58 +0000 (10:51 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
real_sb->size is zero (e.g. RAID-0), get the disk size from
real_sb->data_size instead.
Fixes Ubuntu bug #743136.

13 years ago * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 09:25:04 +0000 (11:25 +0200)]
* grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
printf clauses for printing size and start.

13 years ago * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 08:56:14 +0000 (10:56 +0200)]
* grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
Reported and tested by: Timothy Nikkel.

13 years ago * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 06:33:28 +0000 (08:33 +0200)]
* grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
(dirty_region_add_real): ... this.
(dirty_region_add): Don't discard margin refresh when performing
scheduled repaint.

13 years ago * grub-core/lib/relocator.c (allocate_regstart)
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 06:20:19 +0000 (08:20 +0200)]
* grub-core/lib/relocator.c (allocate_regstart)
[!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
terminals are capabple of malloc-free operation.
(allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
(malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.

13 years ago * util/grub-setup.c: Copy the partition table zone if floppy support
Vladimir 'phcoder' Serbinenko [Tue, 29 Mar 2011 00:20:52 +0000 (02:20 +0200)]
    * util/grub-setup.c: Copy the partition table zone if floppy support
is disabled, even if no partition table is found.

        Otherwise, the BIOS on Dell Latitude E series laptops will freeze
        during POST if an invalid partition table is contained in the PBR
        of the active partition when GRUB is installed to a partition.

13 years ago* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
Colin Watson [Mon, 28 Mar 2011 14:17:22 +0000 (15:17 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
comment.

13 years ago* grub-core/disk/raid.c (grub_raid_register): Adjust debug message
Colin Watson [Mon, 28 Mar 2011 12:23:54 +0000 (13:23 +0100)]
* grub-core/disk/raid.c (grub_raid_register): Adjust debug message
to be specific about what kind of RAID device we're scanning for.

13 years ago* grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't return freed...
Seth Goldberg [Sat, 26 Mar 2011 22:22:59 +0000 (23:22 +0100)]
* grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't return freed string.

13 years ago * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
Vladimir 'phcoder' Serbinenko [Sat, 26 Mar 2011 13:14:59 +0000 (14:14 +0100)]
* grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.

13 years ago Use libgeom on FreeBSD to detect partitions.
Vladimir 'phcoder' Serbinenko [Sat, 26 Mar 2011 11:59:02 +0000 (12:59 +0100)]
Use libgeom on FreeBSD to detect partitions.

* Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
(grub-mkrelpath): Likewise.
(grub-script-check): Likewise.
(grub-editenv): Likewise.
(grub-mkpasswd-pbkdf2): Likewise.
(grub-fstest): Likewise.
(grub-mkfont): Likewise.
(grub-mkdevicemap): Likewise.
(grub-probe): Likewise.
(grub-setup): Likewise.
(grub-ofpathname): Likewise.
(grub-mklayout): Likewise.
(example_unit_test): Likewise.
(grub-menulst2cfg): Likewise.
* grub-core/Makefile.core.def (grub-emu): Likewise.
(grub-emu-lite): Likewise.
* configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
* grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
define HAVE_DIOCGDINFO.
(follow_geom_up) [FreeBSD]: New function.
(find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
(convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
(grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
unconditionally of HAVE_DIOCGDINFO.

13 years ago Fix FreeBSD compilation problem.
Vladimir 'phcoder' Serbinenko [Sat, 26 Mar 2011 11:49:34 +0000 (12:49 +0100)]
Fix FreeBSD compilation problem.

* grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
(FLOPPY_MAJOR) [FreeBSD]: Likewise.

13 years ago* grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
Colin Watson [Fri, 25 Mar 2011 00:03:54 +0000 (00:03 +0000)]
* grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
Switch back to page zero before loading a kernel, since some kernel
drivers expect that.
Thanks to: Felix Kuehling.

13 years ago * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
Vladimir 'phcoder' Serbinenko [Thu, 24 Mar 2011 11:45:51 +0000 (12:45 +0100)]
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
[DEBUG_RELOCATOR]: Reuse grub_mm_check.
(grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.

13 years ago * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
Vladimir 'phcoder' Serbinenko [Thu, 24 Mar 2011 11:43:28 +0000 (12:43 +0100)]
* include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
(grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.

13 years ago * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
Vladimir 'phcoder' Serbinenko [Thu, 24 Mar 2011 11:39:48 +0000 (12:39 +0100)]
* grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
malloc is disabled.

13 years ago * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
Vladimir 'phcoder' Serbinenko [Thu, 24 Mar 2011 11:28:22 +0000 (12:28 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
for modules headers when counting the needed allocation size.

13 years ago * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 19:29:17 +0000 (20:29 +0100)]
* grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
if no ASCII character is found to prevent crash.

13 years ago * grub-core/video/bitmap.c (match_extension): Ignore case.
Alexander Kurtz [Wed, 23 Mar 2011 16:08:56 +0000 (17:08 +0100)]
* grub-core/video/bitmap.c (match_extension): Ignore case.

13 years ago * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 13:18:56 +0000 (14:18 +0100)]
* grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.

13 years ago * grub-core/script/parser.y: Declare "time" as valid argument.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 12:23:50 +0000 (13:23 +0100)]
* grub-core/script/parser.y: Declare "time" as valid argument.

13 years ago Fix incorrect assert failure reporting.
Peter Jones [Wed, 23 Mar 2011 12:01:42 +0000 (13:01 +0100)]
Fix incorrect assert failure reporting.

* grub-core/tests/example_functional_test.c (example_test): Add
a failure comment.
* grub-core/tests/lib/test.c (add_failure): Renamed to ...
(failure_start): ...this. Check that malloc succeeded.
Don't call xvasprintf. Return failure struct.
(failure_append_vtext): New function.
(failure_append_text): Likewise.
(add_failure): Likewise.
(grub_test_assert_helper): Likewise.
* include/grub/test.h (grub_test_assert_helper): New declaration.
(grub_test_assert): Macro rewritten.

13 years ago * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:40:15 +0000 (12:40 +0100)]
* grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.

13 years ago * grub-core/lib/i386/pc/biosnum.c: Add missing include.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:23:42 +0000 (12:23 +0100)]
* grub-core/lib/i386/pc/biosnum.c: Add missing include.

13 years ago * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:21:15 +0000 (12:21 +0100)]
* grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
into GRUB-style one.

13 years agomissing file in last change
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:18:21 +0000 (12:18 +0100)]
missing file in last change

13 years ago * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:17:05 +0000 (12:17 +0100)]
* grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
error and not grub_errno.
* grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.

13 years ago * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:13:39 +0000 (12:13 +0100)]
* grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
GRUB_USB_SPEED_NONE in case of failure and not the error code.

13 years ago * grub-core/efiemu/i386/pc/cfgtables.c
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:08:33 +0000 (12:08 +0100)]
* grub-core/efiemu/i386/pc/cfgtables.c
(grub_machine_efiemu_init_tables): Make declaration a prototype.
* grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
(grub_xnu_unlock): Likewise.
* grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.

13 years ago * grub-core/bus/usb/usb.c (attach_hooks): Make static.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 11:05:13 +0000 (12:05 +0100)]
* grub-core/bus/usb/usb.c (attach_hooks): Make static.
* grub-core/bus/usb/usbhub.c (hubs): Likewise.
* grub-core/commands/hashsum.c (aliases): Likewise.
* grub-core/commands/setpci.c (pci_registers): Likewise.
* grub-core/disk/usbms.c (attach_hook): Likewise.
* grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
(zio_checksum_table): Likewise.
* grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
* grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
* grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
* grub-core/lib/relocator.c (leftovers): Likewise.
(extra_blocks): Likewise.
* grub-core/loader/i386/bsd.c (relocator): Likewise.
* grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
(modules_last): Likewise.
* grub-core/loader/i386/xnu.c (table_aliases): Likewise.
(devices): Likewise.
* grub-core/loader/multiboot_mbi2.c (modules): Likewise.
(modules_last): Likewise.
* grub-core/normal/auth.c (users): Likewise.
* grub-core/normal/context.c (initial_menu): Likewise.
(current_menu): Likewise.
* grub-core/normal/crypto.c (crypto_specs): Likewise.
* grub-core/term/serial.c (grub_serial_ports): Likewise.
(grub_serial_terminfo_input_template): Likewise.
(grub_serial_terminfo_output_template): Likewise.
(grub_serial_terminfo_input): Likewise.
(grub_serial_terminfo_output): Likewise.
(registered): Likewise.
* grub-core/term/usb_keyboard.c (attach_hook): Likewise.

13 years ago * grub-core/video/bochs.c (grub_video_bochs_setup): Use
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 10:54:58 +0000 (11:54 +0100)]
* grub-core/video/bochs.c (grub_video_bochs_setup): Use
grub_video_mode_type_t.
* grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
* grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
* grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.

13 years ago * util/grub-install.in: Correct the x86-64 name as x86_64.
Vladimir 'phcoder' Serbinenko [Wed, 23 Mar 2011 10:52:04 +0000 (11:52 +0100)]
* util/grub-install.in: Correct the x86-64 name as x86_64.

13 years ago* grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
Colin Watson [Fri, 11 Mar 2011 11:51:10 +0000 (11:51 +0000)]
* grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
initial chunk read from the kernel always includes GRUB's multiboot
header, which is now outside the first sector.

13 years ago* grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
Colin Watson [Wed, 9 Mar 2011 17:38:31 +0000 (17:38 +0000)]
* grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
cached mmap_size, so that this works correctly when called multiple
times.
Reported by: Daniel Kahn Gillmor.  Should fix Debian bug #616638.

13 years ago* docs/grub.texi (Simple configuration): Tidy up formatting.
Colin Watson [Wed, 9 Mar 2011 17:35:16 +0000 (17:35 +0000)]
* docs/grub.texi (Simple configuration): Tidy up formatting.

13 years ago2011-03-07 Szymon Janc <szymon@janc.net.pl>
Szymon Janc [Mon, 7 Mar 2011 21:23:06 +0000 (22:23 +0100)]
2011-03-07  Szymon Janc <szymon@janc.net.pl>

* grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
Set-but-not-used variable removed.

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 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 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 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.