]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
17 years ago2008-07-14 Pavel Roskin <proski@gnu.org>
proski [Mon, 14 Jul 2008 04:46:19 +0000 (04:46 +0000)] 
2008-07-14  Pavel Roskin  <proski@gnu.org>

* commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
* commands/cmp.c (grub_cmd_cmp): Likewise.
* kern/dl.c (grub_dl_flush_cache): Likewise.
(grub_dl_load_core): Likewise.
* kern/elf.c (grub_elf32_load_phdrs): Likewise.
(grub_elf64_load_phdrs): Likewise.

17 years agoFix typos in ChangeLog and comments
proski [Sun, 13 Jul 2008 18:13:36 +0000 (18:13 +0000)] 
Fix typos in ChangeLog and comments

17 years ago2008-07-13 Pavel Roskin <proski@gnu.org>
proski [Sun, 13 Jul 2008 17:46:25 +0000 (17:46 +0000)] 
2008-07-13  Pavel Roskin  <proski@gnu.org>

* lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
between signed and unsigned.
(LzmaEnc_Finish): Fix warning about an unused parameter.

17 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:55:15 +0000 (01:55 +0000)] 
2008-07-13  Bean  <bean123ch@gmail.com>

* Makefile.in (enable_lzo): New rule.

* conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.

* configure.ac (ENABLE_LZO): New option --enable-lzo.

* boot/i386/pc/lnxboot.S: #include <config.h>.

* include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
its value accordding to the compression algorithm used, lzo or lzma.

* util/i386/pc/grub-mkimage.c (compress_kernel): Use different
compression algorithm according to configure macro.

* kern/i386/pc/startup.S (codestart): Likewise.

* kern/i386/pc/lzma_decode.S: New file.

* include/grub/lib/LzFind.h: Likewise.

* include/grub/lib/LzHash.h: Likewise.

* include/grub/lib/LzmaDec.h: Likewise.

* include/grub/lib/LzmaEnc.h: Likewise.

* include/grub/lib/LzmaTypes.h: Likewise.

* lib/LzFind.c: Likewise.

* lib/LzmaDec.c: Likewise.

* lib/LzmaEnc.c: Likewise.

17 years ago2008-07-13 Bean <bean123ch@gmail.com>
bean [Sun, 13 Jul 2008 01:13:12 +0000 (01:13 +0000)] 
2008-07-13  Bean  <bean123ch@gmail.com>

* fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
(grub_ext4_extent_header): New structure.
(grub_ext4_extent): Likewise.
(grub_ext4_extent_idx): Likewise.
(grub_ext4_find_leaf): New function.
(grub_ext2_read_block): Handle extents.

17 years ago2008-07-12 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 12 Jul 2008 15:40:50 +0000 (15:40 +0000)] 
2008-07-12  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.

17 years ago2008-07-11 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 11 Jul 2008 20:09:14 +0000 (20:09 +0000)] 
2008-07-11  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/40_custom.in: New file. Example on how to add custom
        entries to /etc/grub.d.
        * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
        40_custom (implicitly, by merging all the grub.d rules).

17 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 17:35:06 +0000 (17:35 +0000)] 
2008-07-11  Pavel Roskin  <proski@gnu.org>

* commands/read.c (grub_getline): Fix invalid memory access.
Don't add newline to the variable value.

17 years ago2008-07-11 Pavel Roskin <proski@gnu.org>
proski [Fri, 11 Jul 2008 16:40:45 +0000 (16:40 +0000)] 
2008-07-11  Pavel Roskin  <proski@gnu.org>

* term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
[!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
(serial_hw_get_port): Check validity of the port number.
(grub_cmd_serial): Check return value of serial_hw_get_port().

17 years ago2008-07-07 Pavel Roskin <proski@gnu.org>
proski [Mon, 7 Jul 2008 15:11:06 +0000 (15:11 +0000)] 
2008-07-07  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/diskboot.S (notification_string): Replace
"Loading kernel" with just "loading".  This is shorter, less
confusing and saves a few bytes for possible future changes.

17 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 01:24:19 +0000 (01:24 +0000)] 
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
size for ATAPI devices, they are undefined.  Output sector
number in decimal form.

17 years ago2008-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 6 Jul 2008 00:57:36 +0000 (00:57 +0000)] 
2008-07-05  Pavel Roskin  <proski@gnu.org>

* disk/ata.c: Use named constants for status bits.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:26:10 +0000 (03:26 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
grub_addr_t before casting it to the void pointer to fix a
warning.  Non-addressable regions are discarded earlier.
(grub_arch_modules_addr): Cast _end to grub_addr_t.
* kern/i386/linuxbios/table.c: Include grub/misc.h.
(check_signature): Don't shadow table_header.
(grub_linuxbios_table_iterate): Cast numeric constants to
grub_linuxbios_table_header_t.
* include/grub/i386/linuxbios/init.h: Add noreturn attribute to
grub_stop().

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 03:01:55 +0000 (03:01 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
prevent warnings.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 02:12:54 +0000 (02:12 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
pointer, which can cause warnings.  Support 64-bit addresses.

17 years ago2008-07-04 Pavel Roskin <proski@gnu.org>
proski [Fri, 4 Jul 2008 01:53:52 +0000 (01:53 +0000)] 
2008-07-04  Pavel Roskin  <proski@gnu.org>

* util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
of sizeof(long).  This fixes PowerPC image generation on x86_64.

17 years ago2008-07-04 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 3 Jul 2008 22:56:43 +0000 (22:56 +0000)] 
2008-07-04  Robert Millan  <rmh@aybabtu.com>

        This fixes a performance issue when pc & gpt partmap iterators
        didn't abort iteration even after our hook found what it was
        looking for (often causing expensive probes of non-existant drives).

        Some callers relied on previous buggy behaviour, since they would
        rise an error when their own hooks caused early abortion of its
        iteration.

        * kern/device.c (grub_device_open): Improve error message.
        * disk/lvm.c (grub_lvm_open): Likewise.
        * disk/raid.c (grub_raid_open): Likewise.

        * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.
        (pc_partition_map_probe): Do not fail when find_func() caused
        early abortion of pc_partition_map_iterate().

        * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.
        (gpt_partition_map_probe): Do not fail when find_func() caused
        early abortion of gpt_partition_map_iterate().

        * kern/partition.c (grub_partition_iterate): Abort parent iteration
        when hook requests it, independently of grub_errno.  Do not fail when
        part_map_iterate_hook() caused early abortion of p->iterate().

        * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
        when grub_partition_iterate() returned with non-zero.

17 years ago2008-07-03 Pavel Roskin <proski@gnu.org>
proski [Thu, 3 Jul 2008 20:53:00 +0000 (20:53 +0000)] 
2008-07-03  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_pio_write): Check status before writing,
like we do in grub_ata_pio_read().
(grub_ata_readwrite): Always write individual sectors.  Fix the
sector count for the remainder.
(grub_ata_write): Enable writing to ATA devices.  Correctly
report error for ATAPI devices.

17 years agoRemove svn:eol-style property for compatibility with Autoconf 2.62
proski [Thu, 3 Jul 2008 04:26:46 +0000 (04:26 +0000)] 
Remove svn:eol-style property for compatibility with Autoconf 2.62
generated configure, which uses bare carriage return to define ac_cr.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Thu, 3 Jul 2008 00:52:28 +0000 (00:52 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/cdboot.S: Add _start entry to fix a linker
warning.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 23:58:06 +0000 (23:58 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* disk/ata.c (grub_ata_readwrite): Don't increment sector number
for every read sector, we already increment it for the whole
batch.  This fixes reading more than 256 sectors at once.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 22:00:42 +0000 (22:00 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (cmd_info): Cast argument to long
explicitly.  ptrdiff_t reduces to int on i386.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:51:46 +0000 (20:51 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (main): Be specific which parameter is
missing.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:18:51 +0000 (20:18 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
(memdisk): Make memdisk_orig_addr a pointer.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 20:02:54 +0000 (20:02 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
for file offsets, use grub_off_t instead.  Fix printf format
warnings.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:37:09 +0000 (19:37 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/reiserfs.c: Remove #warning, TODO list items don't belong
there.  Real unexpected warnings should not drown in the noise
about known problems.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:30:56 +0000 (19:30 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
grub_disk_addr_t for memory addresses.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:22:35 +0000 (19:22 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* loader/aout.c (grub_aout_load): Cast load_addr to pointer
explicitly to fix a warning.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:11:26 +0000 (19:11 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* util/grub-editenv.c (cmd_info): Fix warning in printf format.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 19:03:23 +0000 (19:03 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* Makefile.in (MODULE_LDFLAGS): New variable.
* aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro.  Check if
the linker accepts --build-id=none.
* configure.ac: Call grub_PROG_LD_BUILD_ID_NONE.  Substitute
MODULE_LDFLAGS.
* genmk.rb: Use MODULE_LDFLAGS when linking modules.

17 years ago2008-07-02 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 18:40:32 +0000 (18:40 +0000)] 
2008-07-02  Pavel Roskin  <proski@gnu.org>

* fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
those in Linux XFS code.  Provide a way to access 64-bit parent
inode.
(grub_xfs_iterate_dir): Use the new names.  Avoid reading past
the end of struct grub_xfs_dir_header.

17 years ago2008-07-02 Bean <bean123ch@gmail.com>
bean [Wed, 2 Jul 2008 07:38:46 +0000 (07:38 +0000)] 
2008-07-02  Bean  <bean123ch@gmail.com>

* include/grub/ieee1275.h (grub_ieee1275_flag): New constant
GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
and GRUB_IEEE1275_FLAG_NO_ANSI.

* kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.

* kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.

* kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.

* term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
esc sequence on non ANSI terminal.
(grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.

* util/elf/grub-mkimage.c (add_segments): Move ELF header to the
beginning of file.

17 years ago2008-07-02 Bean <bean123ch@gmail.com>
bean [Wed, 2 Jul 2008 07:20:11 +0000 (07:20 +0000)] 
2008-07-02  Bean  <bean123ch@gmail.com>

* conf/common.rmk (bin_UTILITIES): Add grub-editenv.
(grub_editenv_SOURCES): New variable.
(pkglib_MODULES): Add loadenv.mod.
(loadenv_mod_SOURCES): New variable.
(loadenv_mod_CFLAGS): Likewise.
(loadenv_mod_LDFLAGS): Likewise.

* include/grub/envblk.h: New file.

* util/envblk.c: New file.

* util/grub-editenv.c: New file.

* commands/loadenv.c: New file.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:17:43 +0000 (01:17 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* include/multiboot2.h (struct multiboot_tag_module): Use char,
not unsigned char.  This fixes warnings and is consistent with
other tags.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:07:37 +0000 (01:07 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* disk/fs_uuid.c (search_fs_uuid): Correctly increment count.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 01:00:37 +0000 (01:00 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:54:18 +0000 (00:54 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* term/tparm.c (analyze): Always set *popcount.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:39:55 +0000 (00:39 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
cast to fix a warning.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 2 Jul 2008 00:37:48 +0000 (00:37 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
cast to suppress a warning.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:33:49 +0000 (23:33 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
grub_fshelp_read_file() expects.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:18:25 +0000 (23:18 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* fs/fat.c: Fix UUID calculation on big-endian systems.  We
write uuid as a 32-bit value in CPU byte order, so declare and
use it as such.

17 years ago2008-07-01 Pavel Roskin <proski@gnu.org>
proski [Tue, 1 Jul 2008 23:02:16 +0000 (23:02 +0000)] 
2008-07-01  Pavel Roskin  <proski@gnu.org>

* disk/raid.c: Cast grub_dprintf() arguments to unsigned long
long if the format specifier expects it.
* partmap/gpt.c (gpt_partition_map_iterate): Likewise.
* partmap/pc.c (pc_partition_map_iterate): Likewise.
* fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
long to fix a warning.
* fs/reiserfs.c (grub_reiserfs_read): Change casts in
grub_dprintf() arguments to fix warnings.

17 years ago2008-06-30 Pavel Roskin <proski@gnu.org>
proski [Mon, 30 Jun 2008 23:52:24 +0000 (23:52 +0000)] 
2008-06-30  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Write install_dos_part and
install_bsd_part immediately before core.img is embedded or
modified on disk.  This fixes core.img verification if core.img
cannot be embedded.

17 years ago2008-06-30 Pavel Roskin <proski@gnu.org>
proski [Mon, 30 Jun 2008 20:44:58 +0000 (20:44 +0000)] 
2008-06-30  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
core_path to calculate the blocklist.
Patch from Javier Martín <lordhabbit@gmail.com>

17 years ago2008-06-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Jun 2008 21:33:38 +0000 (21:33 +0000)] 
2008-06-29  Robert Millan  <rmh@aybabtu.com>

        * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro.  Maps filesystem
        block to disk block.
        (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
        Patch from Niels B\303\266hm <bitbucket@arcor.de>

17 years ago2008-06-29 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 29 Jun 2008 14:29:48 +0000 (14:29 +0000)] 
2008-06-29  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (font_path): Search for fonts in
        /boot/grub first, which is more likely to be readable (we aren't
        deciding where fonts live, just looking for them).

17 years ago2008-06-26 Pavel Roskin <proski@gnu.org>
proski [Thu, 26 Jun 2008 16:15:52 +0000 (16:15 +0000)] 
2008-06-26  Pavel Roskin  <proski@gnu.org>

* util/biosdisk.c (read_device_map): Don't leave dead map
entries for devices failing stat() check.

17 years ago2008-06-26 Pavel Roskin <proski@gnu.org>
proski [Thu, 26 Jun 2008 15:29:32 +0000 (15:29 +0000)] 
2008-06-26  Pavel Roskin  <proski@gnu.org>

* util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
core_path_dev for the core.img path on the target device.

17 years agoRemove trailing spaces and tabs, replace spaces with tabs when needed
proski [Thu, 26 Jun 2008 15:02:58 +0000 (15:02 +0000)] 
Remove trailing spaces and tabs, replace spaces with tabs when needed

17 years ago2008-06-26 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 26 Jun 2008 14:26:07 +0000 (14:26 +0000)] 
2008-06-26  Robert Millan  <rmh@aybabtu.com>

        * disk/fs_uuid.c: New file.
        * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
        (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
        (fs_uuid_mod_LDFLAGS): New variables.
        * include/grub/disk.h (grub_disk_dev_id): Add
        `GRUB_DISK_DEVICE_UUID_ID'.
        * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
        implement iterate().

17 years ago2008-06-26 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 26 Jun 2008 07:03:26 +0000 (07:03 +0000)] 
2008-06-26  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
        "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
        Linux image includes no initrd.

17 years ago2008-06-21 Javier Mart\303\255n <lordhabbit@gmail.com>
robertmh [Sat, 21 Jun 2008 14:21:03 +0000 (14:21 +0000)] 
2008-06-21  Javier Mart\303\255n  <lordhabbit@gmail.com>

        * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
        call to resolve the core image location that effectively appended the
        name twice.

17 years ago2008-06-21 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 21 Jun 2008 13:51:19 +0000 (13:51 +0000)] 
2008-06-21  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
        call from here ...

        * util/grub.d/10_hurd.in: ... to here ...
        * util/grub.d/10_linux.in: ... and here.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 20:08:57 +0000 (20:08 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * kern/main.c (grub_main): Export `prefix' variable inmediately
        after it has been set by grub_machine_set_prefix().

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 13:09:16 +0000 (13:09 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * commands/search.c (search_label, search_fs_uuid, search_file): Print
        search result when not saving to variable, not the other way around.
        When saving to variable, abort iteration as soon as a match is found.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 12:31:42 +0000 (12:31 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
        check for partition that provides /boot/grub.  Its logic is flawed,
        as it prevents prepare_grub_to_access_device() from being called
        multiple times.

17 years ago2008-06-19 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 19 Jun 2008 12:29:44 +0000 (12:29 +0000)] 
2008-06-19  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
        "insmod" command directly when abstraction modules are needed,
        instead of reliing on GRUB_PRELOAD_MODULES (which had no effect
        since it had already been processed).

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

* conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
changed.  This is needed in case GRUB_LIBDIR changes.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-linuxbios.rmk: Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.

17 years ago2008-06-18 Pavel Roskin <proski@gnu.org>
proski [Thu, 19 Jun 2008 01:04:59 +0000 (01:04 +0000)] 
2008-06-18  Pavel Roskin  <proski@gnu.org>

* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
kernel_elf_symlist.c to symlist.c for consistency with other
architectures.  Update all users.
* conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.

17 years ago2008-06-18 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 18 Jun 2008 17:35:26 +0000 (17:35 +0000)] 
2008-06-18  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
        it in prefix.

        * util/i386/pc/grub-setup.c (main): Don't handle prefix at all.  Set
        `must_embed' to 1 when root_dev is a RAID device.  When dest_dev is
        a RAID device, run setup() for all members independently on whether
        LVM abstraction is being used.
        (setup): Don't handle prefix at all; let grub-mkimage take care of it.
        If grub-mkimage has set `*install_dos_part == -2', don't override this
        value.
        Perform *install_dos_part adjustments independently on whether
        we're embedding or not.
        Clarify error message when image is too big for embedding.
        Remove duplicate *install_dos_part stanza.

17 years ago2008-06-17 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 17 Jun 2008 15:27:14 +0000 (15:27 +0000)] 
2008-06-17  Robert Millan  <rmh@aybabtu.com>

        * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
        (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
        variables.
        (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
        values in grub_ofconsole_normal_color and
        grub_ofconsole_highlight_color (they're not directly related to
        background and foreground).
        (grub_ofconsole_setcolorstate): Extract background and foreground
        from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.

17 years ago2008-06-17 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 17 Jun 2008 13:35:04 +0000 (13:35 +0000)] 
2008-06-17  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub_lib.in (prepare_grub_to_access_device): Use
        /boot/grub for the check in last commit, not /boot (they could be
        different partitions).

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

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

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

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

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

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

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

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

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

17 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().

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

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

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

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

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

17 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().

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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