]> git.proxmox.com Git - grub2.git/log
grub2.git
16 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 22:08:03 +0000 (22:08 +0000)]
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
        asked to setup access for the same partition that provides /boot,
        don't bother using UUIDs since our root already has the value we
        want.

16 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 20:45:21 +0000 (20:45 +0000)]
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
        I2O devices.
        Patch from Sven Mueller <sven@debian.org>.

16 years ago2008-06-16 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 16 Jun 2008 20:29:55 +0000 (20:29 +0000)]
2008-06-16  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in: Check for $EUID instead of $UID.
        Reported by Vincent Zweije.

16 years ago2008-06-16 Bean <bean123ch@gmail.com>
bean [Mon, 16 Jun 2008 19:02:08 +0000 (19:02 +0000)]
2008-06-16  Bean  <bean123ch@gmail.com>

* fs/ext2.c (grub_ext2_blockgroup): Revert to pre journal state.
(grub_ext2_read_block): Likewise.
(grub_ext2_read_inode): Likewise.
(grub_ext2_mount): Likewise.
(grub_ext2_close): Likewise.
(grub_ext3_get_journal): Removed.

* fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre journal state.
(grub_reiserfs_read_symlink): Likewise.
(grub_reiserfs_mount): Likewise.
(grub_reiserfs_open): Likewise.
(grub_reiserfs_read): Likewise.
(grub_reiserfs_close): Likewise.
(grub_reiserfs_get_journal): Removed.

* fs/fshelp.c (grub_fshelp_read): Removed.
(grub_fshelp_map_block): Likewise.

* include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
(grub_fshelp_journal): Likewise.
(grub_fshelp_read): Likewise.
(grub_fshelp_map_block): Likewise.

16 years ago2008-06-16 Pavel Roskin <proski@gnu.org>
proski [Mon, 16 Jun 2008 05:00:50 +0000 (05:00 +0000)]
2008-06-16  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
floating point anymore.
* include/grub/powerpc/libgcc.h: Leave only necessary exports.

16 years agoFix typos
proski [Mon, 16 Jun 2008 01:10:14 +0000 (01:10 +0000)]
Fix typos

16 years ago2008-06-15 Pavel Roskin <proski@gnu.org>
proski [Mon, 16 Jun 2008 00:42:48 +0000 (00:42 +0000)]
2008-06-15  Pavel Roskin  <proski@gnu.org>

* commands/ls.c (grub_ls_list_files): Use integer calculations
for human readable format, avoid floating point use.
* kern/misc.c (grub_ftoa): Remove.
(grub_vsprintf): Remove floating point support.

16 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 20:15:57 +0000 (20:15 +0000)]
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Use the underliing device for loop-AES
        devices.
        Reported by Max Vozeler.

16 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 18:21:16 +0000 (18:21 +0000)]
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
        in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
        skipped later.
        (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
        the beginning of the prefix.

        * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
        It is assumed that if we have a memdisk, grub-mkimage has set
        grub_prefix to include the "(memdisk)" drive in it.

16 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 14:19:34 +0000 (14:19 +0000)]
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
        Initialize keyboard controller after registering the terminal, so that
        grub_printf() can be called from grub_keyboard_controller_init().

16 years ago2008-06-15 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 15 Jun 2008 13:31:18 +0000 (13:31 +0000)]
2008-06-15  Robert Millan  <rmh@aybabtu.com>

        * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
        extent-btree which is written as big endian on disk.
        Reported by Alain Greppin  <al@chilibi.org>.

16 years ago2008-06-14 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 14 Jun 2008 19:04:44 +0000 (19:04 +0000)]
2008-06-14  Robert Millan  <rmh@aybabtu.com>

        * util/i386/efi/grub-install.in (modules): Remove `_chain'.
        * util/i386/pc/grub-install.in (modules): Likewise.

16 years ago2008-06-13 Pavel Roskin <proski@gnu.org>
proski [Fri, 13 Jun 2008 21:51:14 +0000 (21:51 +0000)]
2008-06-13  Pavel Roskin  <proski@gnu.org>

* commands/ls.c (grub_ls_list_files): Fix format warnings.

16 years ago2008-06-13 Bean <bean123ch@gmail.com>
bean [Fri, 13 Jun 2008 06:47:46 +0000 (06:47 +0000)]
2008-06-13  Bean  <bean123ch@gmail.com>

* commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.

* fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.

* fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
to indicate sparse block.

16 years ago2008-06-12 Pavel Roskin <proski@gnu.org>
proski [Thu, 12 Jun 2008 16:13:21 +0000 (16:13 +0000)]
2008-06-12  Pavel Roskin  <proski@gnu.org>

* fs/ext2.c (grub_ext2_read_inode): Don't normalize block
number, grub_fshelp_read() does it for us.

16 years ago2008-06-12 Pavel Roskin <proski@gnu.org>
proski [Thu, 12 Jun 2008 14:48:27 +0000 (14:48 +0000)]
2008-06-12  Pavel Roskin  <proski@gnu.org>

* fs/fshelp.c (grub_fshelp_read): New function.  Implement
linear disk read with journal translation.
* fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
* include/grub/fshelp.h: Declare grub_fshelp_read().

16 years ago2008-06-09 Pavel Roskin <proski@gnu.org>
proski [Mon, 9 Jun 2008 15:32:43 +0000 (15:32 +0000)]
2008-06-09  Pavel Roskin  <proski@gnu.org>

* fs/minix.c (grub_minix_mount): Handle error reading
superblock.

16 years ago2008-06-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Jun 2008 22:54:34 +0000 (22:54 +0000)]
2008-06-08  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
        don't append the RAID prefix afterwards.
        Reported by Clint Adams.

16 years ago2008-06-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Jun 2008 19:46:43 +0000 (19:46 +0000)]
2008-06-08  Robert Millan  <rmh@aybabtu.com>

        Based on description from Pavel:
        * kern/disk.c (grub_disk_check_range): Rename to ...
        (grub_disk_adjust_range): ... this.  Add a comment explaining the
        tasks performed by this function.

16 years ago2008-06-08 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 8 Jun 2008 19:18:58 +0000 (19:18 +0000)]
2008-06-08  Robert Millan  <rmh@aybabtu.com>

        * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
        `num_serial' (for consistency with other variables).
        (struct grub_ntfs_data): Add `uuid' member.
        * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
        (grub_ntfs_uuid): New function.
        (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.

16 years ago2008-06-07 Pavel Roskin <proski@gnu.org>
proski [Sat, 7 Jun 2008 04:30:22 +0000 (04:30 +0000)]
2008-06-07  Pavel Roskin  <proski@gnu.org>

* util/biosdisk.c (open_device): Revert last change to the
function, it broke installation.  The sector needs to be
different dependent on which device is opened.

16 years ago2008-06-06 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 6 Jun 2008 16:29:19 +0000 (16:29 +0000)]
2008-06-06  Robert Millan  <rmh@aybabtu.com>

        Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
        rest of GRUB, and breakage doesn't happen if its value were modified.

        * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
        Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
        a constant (same value).
        * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
        `GRUB_KERNEL_MACHINE_DATA_END' (same value).

16 years ago2008-06-06 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 6 Jun 2008 15:56:46 +0000 (15:56 +0000)]
2008-06-06  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (open_device): Do not modify sector offset when
        accessing a partition.  kern/disk.c already handles this for us.

16 years ago2008-06-06 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 6 Jun 2008 15:49:23 +0000 (15:49 +0000)]
2008-06-06  Robert Millan  <rmh@aybabtu.com>

        * util/grub-emu.c (grub_machine_init): Move code in this function from
        here ...
        (main): ... to here (before grub_util_biosdisk_init() call, to prevent
        segfault in case grub_printf() is called).

        * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
        grub_probe.  Update all users not to explicitly add it again.
        (grub_device): New variable; contains corresponding device for grubdir.
        (fs_module, partmap_module, devabstraction_module): Pass
        `--device ${grub_device}' to grub_probe to avoid traversing /dev
        every time.

16 years ago2008-06-05 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 5 Jun 2008 21:27:54 +0000 (21:27 +0000)]
2008-06-05  Robert Millan  <rmh@aybabtu.com>

        * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
        is found, print it (same layout as with labels).

16 years ago2008-06-04 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 4 Jun 2008 13:59:55 +0000 (13:59 +0000)]
2008-06-04  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (get_drive): Rename to ...
        (find_grub_drive): ... this.  Update all users.

        (get_os_disk): Rename to ...
        (convert_system_partition_to_system_disk): ... this.  Update all users.

        (find_drive): Rename to ...
        (find_system_device): ... this.  Update all users.

16 years ago2008-06-04 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 4 Jun 2008 11:20:36 +0000 (11:20 +0000)]
2008-06-04  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (get_os_disk): Handle IDA devices.
        * util/grub-mkdevicemap.c (get_mmc_disk_name)
        (make_device_map): Likewise.

16 years ago2008-06-01 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 1 Jun 2008 13:30:00 +0000 (13:30 +0000)]
2008-06-01  Robert Millan  <rmh@aybabtu.com>

        *  util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
        before dereferencing it.

        * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
        union with fat12/fat16-specific ones.  Add some new fields, including
        `num_serial' for both versions.
        (struct grub_fat_data): Add `uuid' member.
        (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
        names.  Initialize `data->uuid' using `num_serial'.
        (grub_fat_uuid): New function.
        (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.

        * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
        (grub_reiserfs_uuid): New function.
        (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
        member.

        * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
        (grub_xfs_uuid): New function.
        (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.

16 years ago2008-06-01 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 1 Jun 2008 10:42:48 +0000 (10:42 +0000)]
2008-06-01  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
        code that is backward compatible with pre-uuid search command.

16 years ago2008-05-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 31 May 2008 21:14:27 +0000 (21:14 +0000)]
2008-05-31  Robert Millan  <rmh@aybabtu.com>

        * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
        floppies after everything else, to ensure floppy drive isn't accessed
        unnecessarily (patch from Bean).

16 years ago2008-05-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 31 May 2008 21:08:04 +0000 (21:08 +0000)]
2008-05-31  Robert Millan  <rmh@aybabtu.com>

        * commands/search.c (search_label, search_fs_uuid, search_file): Do
        not print device names when we were asked to set a variable.

16 years ago2008-05-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 31 May 2008 18:09:14 +0000 (18:09 +0000)]
2008-05-31  Robert Millan  <rmh@aybabtu.com>

        * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
        using "cursor-on" and "cursor-off" commands (understood at least by
        the Open Firmware flavour on OLPC).

16 years ago2008-05-31 Michael Gorven <michael@gorven.za.net>
robertmh [Sat, 31 May 2008 15:46:48 +0000 (15:46 +0000)]
2008-05-31  Michael Gorven  <michael@gorven.za.net>

        * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
        on and off sequences.

16 years ago2008-05-31 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 31 May 2008 09:47:06 +0000 (09:47 +0000)]
2008-05-31  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
        * util/update-grub.in: Likewise.

16 years ago2008-05-30 Pavel Roskin <proski@gnu.org>
proski [Fri, 30 May 2008 21:55:31 +0000 (21:55 +0000)]
2008-05-30  Pavel Roskin  <proski@gnu.org>

* util/biosdisk.c (linux_find_partition): Simplify logic and
make the code more universal.  Keep special processing for
devfs, but use a simple rule for all other devices.  If the
device ends with a number, append 'p' and the partition number.
Otherwise, append only the partition number.

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 21:53:17 +0000 (21:53 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
        * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
        GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
        the `root' parameter to Linux.

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 20:55:29 +0000 (20:55 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
        * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
        --fs_uuid with --fs-uuid.
        * util/update-grub.in: Allow filesystem UUID probes to fail (since not
        all filesystems support them).

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 20:47:43 +0000 (20:47 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
        grub_printf() flags, since we're printing in units of 2 bytes.

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 15:09:11 +0000 (15:09 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Remove obsolete comment referencing
        convert_system_path_to_grub_path().
        * util/update-grub.in: Likewise.
        * util/update-grub_lib.in (is_path_readable_by_grub): New function.
        (convert_system_path_to_grub_path): Add a warning message explaining
        that this function is deprecated.  Rely on is_path_readable_by_grub()
        for the readability checks.
        (font_path): Use is_path_readable_by_grub() for the readability
        check rather than convert_system_path_to_grub_path().

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 14:39:44 +0000 (14:39 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
        * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
        converting it first.
        * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
        grub.cfg for access to font file, and afterwards call it again to set
        the root device.

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 11:04:08 +0000 (11:04 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * commands/search.c (options): Add --fs_uuid option.
        (search_fs_uuid): New function.
        (grub_cmd_search): Fix --set argument passing.
        Use search_fs_uuid() when requested via --fs_uuid.
        (grub_search_init): Update help message.
        * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
        and redeclare it as an array of 16-bit words.
        (grub_ext2_uuid): New function.
        (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
        * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
        * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
        (GRUB_DEVICE_BOOT_UUID): New variables.
        (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
        * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
        whenever possible.
        * util/grub.d/10_hurd.in: Avoid explicit use of root drive.  Instead,
        just assume `root' variable has the right value.
        * util/grub.d/10_linux.in: Likewise.
        * util/grub-probe.c (probe): Probe for filesystem UUID when requested
        via PRINT_FS_UUID.
        (main): Recognise `-t fs_uuid' argument.

16 years ago2008-05-30 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 30 May 2008 10:50:00 +0000 (10:50 +0000)]
2008-05-30  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (map): Redefine structure to hold information
        about GRUB drive name.
        (get_drive): Reimplement without assuming (and verifiing) BIOS-like
        drive names.
        (call_hook): Remove.
        (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
        member.  Assume drive has partitions.
        (grub_util_biosdisk_open): Access device names via `.device' struct
        member.
        (open_device): Likewise.
        (find_drive): Likewise.
        (read_device_map): Adjust map[] usage to match the new struct
        definition.  Don't check for duplicates (still possible, but not cheap
        anymore).
        (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
        (make_device_name): Remove assumption of BIOS-like drive names.

16 years agoAdd 30_os-prober to .cvsignore
proski [Fri, 30 May 2008 04:22:04 +0000 (04:22 +0000)]
Add 30_os-prober to .cvsignore

16 years ago2008-05-30 Pavel Roskin <proski@gnu.org>
proski [Fri, 30 May 2008 04:20:48 +0000 (04:20 +0000)]
2008-05-30  Pavel Roskin  <proski@gnu.org>

* conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
compiling execute.c doesn't need grub_script.tab.h anymore.
(normal/command.c_DEPENDENCIES): Likewise.
(normal/function.c_DEPENDENCIES): Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-linuxbios.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.

16 years ago2008-05-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 30 May 2008 03:57:16 +0000 (03:57 +0000)]
2008-05-29  Pavel Roskin  <proski@gnu.org>

* disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
when scanning metadata for volume group name.

16 years ago2008-05-29 Pavel Roskin <proski@gnu.org>
proski [Fri, 30 May 2008 03:26:56 +0000 (03:26 +0000)]
2008-05-29  Pavel Roskin  <proski@gnu.org>

* include/grub/script.h: Don't include grub_script.tab.h.  It's
a generated file, which may only be included from the files with
DEPENDENCIES rules in the makefile.  Don't use typedef YYSTYPE,
use union YYSTYPE, as the later allows forward declaration.
* normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.

16 years ago2008-05-29 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 29 May 2008 18:15:27 +0000 (18:15 +0000)]
2008-05-29  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
        (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
        [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
        (grub_console_checkkey): Add grub_dprintf() call to report unknown
        scan codes.

16 years ago2008-05-29 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 29 May 2008 17:40:27 +0000 (17:40 +0000)]
2008-05-29  Robert Millan  <rmh@aybabtu.com>

        * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
        control key combinations.

16 years ago2008-05-29 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 29 May 2008 16:27:24 +0000 (16:27 +0000)]
2008-05-29  Robert Millan  <rmh@aybabtu.com>

        * util/powerpc/ieee1275/grub-install.in: Move from here ...
        * util/ieee1275/grub-install.in: ... to here.
        * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
        * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
        (grub_install_SOURCES): Likewise.

16 years ago2008-05-29 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 29 May 2008 13:01:43 +0000 (13:01 +0000)]
2008-05-29  Robert Millan  <rmh@aybabtu.com>

        * fs/affs.c: Update copyright year.
        * fs/ext2.c: Likewise.
        * fs/fshelp.c: Likewise.
        * fs/hfsplus.c: Likewise.
        * fs/ntfs.c: Likewise.
        * fs/xfs.c: Likewise.
        * include/grub/fshelp.h: Likewise.
        * util/grub-mkdevicemap.c: Likewise.

16 years ago2008-05-28 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 28 May 2008 19:55:10 +0000 (19:55 +0000)]
2008-05-28  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
        might need to be fatfs to support some firmware implementations
        (e.g. OFW or EFI).

16 years ago2008-05-28 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 28 May 2008 19:53:25 +0000 (19:53 +0000)]
2008-05-28  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
        devices.
        * util/grub-mkdevicemap.c (get_mmc_disk_name)
        (make_device_map): Likewise.

16 years ago2008-05-20 Bean <bean123ch@gmail.com>
bean [Tue, 20 May 2008 05:00:53 +0000 (05:00 +0000)]
2008-05-20  Bean  <bean123ch@gmail.com>

* fs/fshelp.c (grub_fshelp_map_block): New function.
(grub_fshelp_find_file): Use 64-bit type for pos and block address.
Use `>>' and `&' operator to avoid 64-bit divide and modulo.

* include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
(GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
(grub_fshelp_journal): New structure.
(grub_fshelp_map_block): New function prototype.
(grub_fshelp_read_file): Use grub_disk_addr_t as block type.
(grub_fshelp_map_block): Likewise.

* fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
(EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
(EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
(EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
(EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
(EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
(EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
(EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
(EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
(EXT3_JOURNAL_FLAG_DELETED): Likewise.
(EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
(grub_ext2_sblock): New members for journal support.
(grub_ext3_journal_header): New structure.
(grub_ext3_journal_revoke_header): Likewise.
(grub_ext3_journal_block_tag): Likewise.
(grub_ext3_journal_sblock): Likewise.
(grub_fshelp_node): New members logfile and journal.
(grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
grub_fshelp_map_block to get real block number.
(grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
number.
(grub_ext2_read_inode): Likewise.
(grub_ext3_get_journal): New function.
(grub_read_inode): Initialize journal using grub_ext3_get_journal.
(grub_ext2_close): Release memory used by journal.

* fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
(REISERFS_MAGIC_DESC_BLOCK): New macro.
(grub_reiserfs_transaction_header): Renamed to
grub_reiserfs_description_block, replace field data with real_blocks.
(grub_reiserfs_commit_block): New structure.
(grub_reiserfs_data): New member journal.
(grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
number.
(grub_reiserfs_read_symlink): Likewise.
(grub_reiserfs_iterate_dir): Likewise.
(grub_reiserfs_open): Likewise.
(grub_reiserfs_read): Likewise.
(grub_reiserfs_get_journal): New function.
(grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
using grub_reiserfs_get_journal.
(grub_reiserfs_close): Release memory used by journal.

* fs/affs.c (grub_affs_read_block): Change block type to
grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.

* fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.

* fs/hfsplus.c (grub_hfsplus_read_block): Likewise.

* fs/ntfs.c (grub_ntfs_read_block): Likewise.

* fs/udf.c (grub_udf_read_block): Change block type to
grub_disk_addr_t. Use type cast to avoid warning.

* fs/xfs.c (grub_xfs_read_block): Likewise.

16 years ago2008-05-16 Christian Franke <franke@computer.org>
chrfranke [Fri, 16 May 2008 21:55:29 +0000 (21:55 +0000)]
2008-05-16  Christian Franke  <franke@computer.org>

* commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
to ensure that break with ESC will always work.
* commands/sleep.c (grub_interruptible_millisleep): Likewise.
Remove ESC from keyboard queue.

16 years ago2008-05-16 Christian Franke <franke@computer.org>
chrfranke [Fri, 16 May 2008 21:39:52 +0000 (21:39 +0000)]
2008-05-16  Christian Franke  <franke@computer.org>

* util/biosdisk.c: [__CYGWIN__] Add includes.
(grub_util_biosdisk_open): Use Linux code also for Cygwin.
(get_os_disk): Move variable declarations to OS specific
parts to avoid warning.
[__GNU__] (get_os_disk): Fix /dev/sdXsN case.
[__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
(grub_util_biosdisk_get_grub_dev): Use Linux code also for
Cygwin.
* util/getroot.c: [__CYGWIN__] Add includes.
(strip_extra_slashes): Fix "/" case.
[__CYGWIN__] (get_win32_path): New function.
[__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
[__CYGWIN__] (find_root_device): Disable.
[__CYGWIN__] (get_bootsec_serial): New function.
[__CYGWIN__] (find_cygwin_root_device): Likewise.
[__linux__] (grub_guess_root_device): Add early returns to simplify
structure.
[__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
[__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
check for Linux only.

16 years ago2008-05-15 Bean <bean123ch@gmail.com>
bean [Thu, 15 May 2008 11:51:22 +0000 (11:51 +0000)]
2008-05-15  Bean  <bean123ch@gmail.com>

* kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
keyboard hang problem in apple's intel mac.

16 years ago2008-05-09 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 9 May 2008 12:13:03 +0000 (12:13 +0000)]
2008-05-09  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
        devices.
        * util/grub-mkdevicemap.c (get_virtio_disk_name)
        (make_device_map): Likewise.
        Reported by Aurelien Jarno <aurel32@debian.org>

16 years ago2008-05-07 Ian Campbell <ijc@hellion.org.uk>
proski [Wed, 7 May 2008 20:46:57 +0000 (20:46 +0000)]
2008-05-07  Ian Campbell  <ijc@hellion.org.uk>

* util/biosdisk.c (get_os_disk): Recognise xvd type disks.
* util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
(make_device_map): Output entries for xvd type disks.

16 years ago2008-05-07 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 7 May 2008 20:28:26 +0000 (20:28 +0000)]
2008-05-07  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
        devices.
        * util/grub-mkdevicemap.c (get_cciss_disk_name)
        (make_device_map): Likewise.
        Reported by Roland Dreier <rdreier@cisco.com>

16 years ago2008-05-07 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 7 May 2008 12:39:26 +0000 (12:39 +0000)]
2008-05-07  Robert Millan  <rmh@aybabtu.com>

        * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
        grub_strstr() call.  Correct a few mistakes in failure path handling.

16 years ago2008-05-06 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 6 May 2008 13:44:11 +0000 (13:44 +0000)]
2008-05-06  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (make_system_path_relative_to_its_root):
        Do not print a trailing slash (therefore, the root directory is an
        empty string).
        (convert_system_path_to_grub_path): Do not remove trailing slash
        from make_system_path_relative_to_its_root() output.

        * util/i386/pc/grub-install.in: Add trailing slash to output from
        make_system_path_relative_to_its_root().

16 years ago2008-05-06 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 6 May 2008 13:00:57 +0000 (13:00 +0000)]
2008-05-06  Robert Millan  <rmh@aybabtu.com>

        * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'.  This
        ensures that output lines aren't intermangled with those sent to
        stderr (via grub_util_info()).
        * util/grub-probe.c (grub_refresh): Likewise.
        * util/i386/pc/grub-setup.c (grub_refresh): Likewise.

16 years ago2008-05-05 Christian Franke <franke@computer.org>
chrfranke [Mon, 5 May 2008 20:58:53 +0000 (20:58 +0000)]
2008-05-05  Christian Franke  <franke@computer.org>

* util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
Add Cygwin device names.
(get_ide_disk_name) [__CYGWIN__]: Likewise.
(get_scsi_disk_name) [__CYGWIN__]: Likewise.
(check_device): Return error instead of success on empty name.
(make_device_map): Move label inside linux specific code to
prevent compiler warning.

16 years ago2008-04-30 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 30 Apr 2008 11:06:27 +0000 (11:06 +0000)]
2008-04-30  Robert Millan  <rmh@aybabtu.com>

        Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
        * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
        first boot option.
        * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.

16 years ago2008-04-29 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 29 Apr 2008 12:17:33 +0000 (12:17 +0000)]
2008-04-29  Robert Millan  <rmh@aybabtu.com>

        * docs/grub.cfg: New file (example GRUB configuration).

16 years ago2008-04-26 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 26 Apr 2008 17:57:56 +0000 (17:57 +0000)]
2008-04-26  Robert Millan  <rmh@aybabtu.com>

        * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST).  Add
        `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
        and `disk/ieee1275/nand.c'.

16 years ago2008-04-26 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 26 Apr 2008 17:55:41 +0000 (17:55 +0000)]
2008-04-26  Robert Millan  <rmh@aybabtu.com>

        * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST).

16 years ago2008-04-25 Bean <bean123ch@gmail.com>
bean [Fri, 25 Apr 2008 19:41:51 +0000 (19:41 +0000)]
2008-04-25  Bean  <bean123ch@gmail.com>

* Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
i386-linuxbios.

* commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
change the buffer size to 4096 for cdrom device.

* conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
and nand.mod.
(_linux_mod_SOURCES): New variable.
(_linux_mod_CFLAGS): Likewise.
(_linux_mod_LDFLAGS): Likewise.
(linux_mod_SOURCES): Likewise.
(linux_mod_CFLAGS): Likewise.
(linux_mod_LDFLAGS): Likewise.
(nand_mod_SOURCES): Likewise.
(nand_mod_CFLAGS): Likewise.
(nand_mod_LDFLAGS): Likewise.

* disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
type property. (nand device in olpc don't have this property)

* include/grub/disk.h (grub_disk_dev_id): New macro
GRUB_DISK_DEVICE_NAND_ID.

* include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
function prototype.
(grub_rescue_cmd_initrd): Likewise.

* include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
(linux_kernel_params): Add new member ofw_signature, ofw_num_items,
ofw_cif_handler and ofw_idt, adjust padding number.

* include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
GRUB_MACHINE_IEEE1275 is defined.

* include/grub/ieee1275/ieee1275.h (grub_available_iterate):
Use NESTED_FUNC_ATTR attribute on the hook parameter.

* kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
on nested function heap_init.
(grub_upper_mem): New variable for i386-ieee1275.
(grub_get_extended_memory): New function for i386-ieee1275.
(grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.

* kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
property.

* loader/i386/ieee1275/linux.c: New file.

* loader/i386/ieee1275/linux_normal.c: New file.

* disk/ieee1275/nand.c: New file.

16 years agoTypo fixes.
tschwinge [Sat, 19 Apr 2008 17:47:21 +0000 (17:47 +0000)]
Typo fixes.

16 years ago2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
tschwinge [Fri, 18 Apr 2008 16:42:57 +0000 (16:42 +0000)]
2008-04-18  Thomas Schwinge  <tschwinge@gnu.org>

* util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
value.
* util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.

16 years ago2008-04-18 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 18 Apr 2008 15:53:20 +0000 (15:53 +0000)]
2008-04-18  Robert Millan  <rmh@aybabtu.com>

        Restructures early code path on ieee1275 to unify grub_main() as
        the first C function that is executed in every platform.

        * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
        * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
        cmain().
        * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
        * kern/ieee1275/cmain.c (cmain): Rename to ...
        * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
        * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
        at the beginning.

16 years ago2008-04-18 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 18 Apr 2008 13:20:55 +0000 (13:20 +0000)]
2008-04-18  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in: Fix syntax error when setting
        `GRUB_PRELOAD_MODULES'.
        Reported by Stephane Chazelas <stephane@artesyncp.com>

16 years ago2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
robertmh [Thu, 17 Apr 2008 14:14:10 +0000 (14:14 +0000)]
2008-04-17  Lubomir Kundrak  <lkundrak@redhat.com>

        * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
        section into account, newer toolchains generate unique build ids
        * configure.ac: remove the test for --build-id=none acceptance,
        we want build ids to bre preserved
        * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
        far from other sections don't cause the raw binary images grow
        size

16 years ago2008-04-15 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 15 Apr 2008 13:28:14 +0000 (13:28 +0000)]
2008-04-15  Robert Millan  <rmh@aybabtu.com>

        * disk/lvm.c: Update copyright year.
        * kern/misc.c: Likewise.

16 years ago2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Mon, 14 Apr 2008 19:39:04 +0000 (19:39 +0000)]
2008-04-14  Vesa Jaaskelainen  <chaac@nic.fi>

        * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
        there is no memory left for physical volume name.

16 years ago2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Mon, 14 Apr 2008 19:08:38 +0000 (19:08 +0000)]
2008-04-14  Vesa Jaaskelainen  <chaac@nic.fi>

        * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
        volume name mapping to support bigger than 9 character names properly.

16 years agoRegenerate
proski [Mon, 14 Apr 2008 00:58:23 +0000 (00:58 +0000)]
Regenerate

16 years ago2008-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 13 Apr 2008 18:40:25 +0000 (18:40 +0000)]
2008-04-13  Robert Millan  <rmh@aybabtu.com>

        * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
        as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm

16 years ago2008-04-13 Christian Franke <franke@computer.org>
robertmh [Sun, 13 Apr 2008 15:13:49 +0000 (15:13 +0000)]
2008-04-13  Christian Franke  <franke@computer.org>

        * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
        to create a floppy emulation boot CD when non emulation mode
        does not work.
        Enable Joliet CD filesystem extension.

16 years ago2008-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 13 Apr 2008 14:58:42 +0000 (14:58 +0000)]
2008-04-13  Robert Millan  <rmh@aybabtu.com>

        * kern/misc.c (grub_strncat): Fix off-by-one error.
        Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>

        * kern/env.c (grub_env_context_close): Clear current context, not
        previous one.
        Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>

        * kern/misc.c (grub_strcat): Minor speed optimization (same code size).

16 years ago2008-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 13 Apr 2008 12:22:22 +0000 (12:22 +0000)]
2008-04-13  Robert Millan  <rmh@aybabtu.com>

        Improve robustness when handling LVM.

        * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
        (and leave `*p' unmodified).
        (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
        through it.
        (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
        iterating through it.
        (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
        through it.
        (grub_lvm_scan_device): Check the return value (and fail gracefuly
        when due) on each grub_lvm_getvalue() or grub_strstr() call.
        Don't assume `vg->pvs != NULL' when iterating through it.

16 years agoforgot to add genpartmaplist.sh
robertmh [Sun, 13 Apr 2008 10:58:23 +0000 (10:58 +0000)]
forgot to add genpartmaplist.sh

16 years ago2008-04-13 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 13 Apr 2008 10:55:19 +0000 (10:55 +0000)]
2008-04-13  Robert Millan  <rmh@aybabtu.com>

        * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
        * genmk.rb (partmap): New variable.
        (CLEANFILES, PARTMAPFILES): Add #{partmap}.
        (#{partmap}): New target rule.
        * genpartmaplist.sh: New file.
        * Makefile.in (pkglib_DATA): Add partmap.lst.
        (partmap.lst): New target rule.
        * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
        modules (including all partition maps), instead of preloading them.

16 years ago2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
robertmh [Sun, 13 Apr 2008 10:51:54 +0000 (10:51 +0000)]
2007-04-13  Fabian Greffrath  <fabian.greffrath@web.de>

        * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
        `linux-boot-prober' (if installed) to detect other operating
        systems which are installed on the computer and add them to
        the boot menu.
        * conf/common.rmk: Build and install 30_os-prober.

16 years ago2008-04-12 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 12 Apr 2008 21:09:36 +0000 (21:09 +0000)]
2008-04-12  Robert Millan  <rmh@aybabtu.com>

        * kern/powerpc/ieee1275/init.c: Move from here ...
        * kern/ieee1275/init.c: ... to here.  Update all users.

        * kern/powerpc/ieee1275/cmain.c: Move from here ...
        * kern/ieee1275/cmain.c: ... to here.  Update all users.

        * kern/powerpc/ieee1275/openfw.c: Move from here ...
        * kern/ieee1275/openfw.c: ... to here.  Update all users.

        * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
        * loader/ieee1275/multiboot2.c: ... to here.  Update all users.

16 years ago2008-04-10 Pavel Roskin <proski@gnu.org>
proski [Thu, 10 Apr 2008 22:26:50 +0000 (22:26 +0000)]
2008-04-10  Pavel Roskin  <proski@gnu.org>

* configure.ac: Always use "_cv_" in cache variables for
compatibility with Autoconf 2.62.

16 years ago2008-04-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 Apr 2008 17:18:13 +0000 (17:18 +0000)]
2008-04-07  Robert Millan  <rmh@aybabtu.com>

        Revert grub/machine/init.h addition by Pavel (since it breaks on
        i386-ieee1275 and others):
        * util/i386/pc/misc.c: Remove grub/machine/init.h.
        * util/powerpc/ieee1275/misc.c: Likewise.

16 years ago2008-04-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 Apr 2008 15:23:09 +0000 (15:23 +0000)]
2008-04-07  Robert Millan  <rmh@aybabtu.com>

        * util/grub-probe.c (probe): Improve error message.

16 years ago2008-04-07 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 7 Apr 2008 15:00:27 +0000 (15:00 +0000)]
2008-04-07  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (read_device_map): Skip devices that don't exist
        (this prevents the presence of a bogus entry from ruining the whole
        thing).

16 years ago2008-04-06 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Apr 2008 17:51:56 +0000 (17:51 +0000)]
2008-04-06  Pavel Roskin  <proski@gnu.org>

* util/biosdisk.c: Include grub/util/biosdisk.h.
* util/grub-fstest.c (execute_command): Make static.
* util/grub-mkdevicemap.c (check_device): Likewise.
* util/i386/pc/misc.c: Include grub/machine/init.h.
* util/powerpc/ieee1275/misc.c: Likewise.
* util/lvm.c: Include grub/util/lvm.h.
* util/misc.c: Include grub/kernel.h, grub/misc.h and
grub/cache.h.
* util/raid.c: Include grub/util/raid.h.
(grub_util_getdiskname): Make static.

16 years ago2008-04-06 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Apr 2008 17:16:39 +0000 (17:16 +0000)]
2008-04-06  Pavel Roskin  <proski@gnu.org>

* util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
grub_hostfs_fini(), as they are called from grub_init_all() and
grub_fini_all() respectively.  This fixes an infinite loop in
grub-fstest due to double registration of hostfs.
Reported by Christian Franke <Christian.Franke@t-online.de>

16 years ago2008-04-05 Pavel Roskin <proski@gnu.org>
proski [Sat, 5 Apr 2008 07:20:29 +0000 (07:20 +0000)]
2008-04-05  Pavel Roskin  <proski@gnu.org>

* bus/pci.c (grub_pci_iterate): For multifunction devices, probe
all 8 functions.  Otherwise, probe function 0 only.

16 years ago2008-04-04 Pavel Roskin <proski@gnu.org>
proski [Sat, 5 Apr 2008 02:07:11 +0000 (02:07 +0000)]
2008-04-04  Pavel Roskin  <proski@gnu.org>

* commands/lspci.c (grub_lspci_iter): Print the bus number
correctly.

16 years ago2008-04-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Apr 2008 08:07:07 +0000 (08:07 +0000)]
2008-04-04  Pavel Roskin  <proski@gnu.org>

* commands/lspci.c (grub_pci_classes): Fix typos.
(grub_lspci_iter): Don't print func twice.  Print vendor ID
before device ID, as it's normally done.

16 years ago2008-04-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Apr 2008 06:45:07 +0000 (06:45 +0000)]
2008-04-04  Pavel Roskin  <proski@gnu.org>

* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
Fix signedness warnings.
* kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
Likewise.
* util/ieee1275/get_disk_name.c: Include config.h so that
_GNU_SOURCE is defined and getline() is declared.  Mark an
unused argument as such.  Fix a signedness warning.

16 years ago2008-04-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Apr 2008 07:29:59 +0000 (07:29 +0000)]
2008-04-02  Pavel Roskin  <proski@gnu.org>

* genkernsyms.sh.in: Use more robust assignments for CC and
srcdir.  Quote srcdir.
* gensymlist.sh.in: Likewise.  Assert at the compile time that
the symbol table is not empty.

16 years ago2008-04-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Apr 2008 06:10:44 +0000 (06:10 +0000)]
2008-04-02  Pavel Roskin  <proski@gnu.org>

* disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
* fs/cpio.c (grub_cpio_read): Likewise.

16 years ago2008-04-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Apr 2008 04:25:41 +0000 (04:25 +0000)]
2008-04-01  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
* disk/host.c (grub_host_open): Likewise.
* disk/loopback.c (grub_loopback_open): Likewise.
* disk/memdisk.c (grub_memdisk_open): Use a string pointer for
disk->id as in disk/host.c, not a multi-character constant.

16 years ago2008-04-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Apr 2008 01:49:18 +0000 (01:49 +0000)]
2008-04-01  Pavel Roskin  <proski@gnu.org>

* util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek().  The
later is obsolete, potentially dangerous and sets a bad example.
* util/i386/efi/grub-mkimage.c (make_header): Likewise.
* util/misc.c (grub_util_get_image_size): Likewise.

16 years ago2008-04-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Apr 2008 01:31:11 +0000 (01:31 +0000)]
2008-04-01  Pavel Roskin  <proski@gnu.org>

* disk/loopback.c (options): Improve help for "--partitions".