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

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

* normal/arg.c (grub_arg_show_help): Fix spacing of the long
options to align them with the short options, e.g. "echo -e".

16 years ago2008-03-31 Bean <bean123ch@gmail.com>
bean [Mon, 31 Mar 2008 12:00:48 +0000 (12:00 +0000)]
2008-03-31  Bean  <bean123ch@gmail.com>

* video/reader/png.c (grub_png_data): New member is_16bit and
image_data.
(grub_png_decode_image_header): Detect 16 bit png image.
(grub_png_convert_image): New function to convert 16 bit image to 8 bit.
(grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
(grub_video_reader_png): Release memory occupied by image_data.

* fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
4096 bytes.
(grub_nfs_mount): Skip the test for sector per cluster.

* include/grub/ntfs.h (MAX_SPC): Removed.

16 years ago2008-03-31 Bean <bean123ch@gmail.com>
bean [Mon, 31 Mar 2008 11:18:00 +0000 (11:18 +0000)]
2008-03-31  Bean  <bean123ch@gmail.com>

* conf/common.rmk (pkgdata_MODULES): Add afs.mod.
(grub_probe_SOURCES): Add fs/afs.c.
(grub_fstest_SOURCES): Likewise.
(afs_mod_SOURCES): New variable.
(afs_mod_CFLAGS): Likewise.
(afs_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
(grub_emu_SOURCES): Likewise.

* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* fs/afs.c: New file.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 18:32:15 +0000 (18:32 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* disk/host.c: Include grub/misc.h to fix a warning.
* util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
warnings about implicit declarations.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 18:04:40 +0000 (18:04 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
variable.
* include/grub/i386/loader.h: Change declaration of
grub_linux_boot() to match what grub_loader_set() expects.
* util/getroot.c (grub_guess_root_device): Return const char* to
fix a warning.
* util/grub-probe.c (probe): Fix a warning about uninitialized
abstraction_name variable.
* util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
second argument as unused to fix a warning.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 16:17:17 +0000 (16:17 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
missing grub_error() call.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 06:22:31 +0000 (06:22 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* util/update-grub_lib.in: Define datarootdir, since Autoconf
2.60 and newer uses it to define datadir.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 06:13:45 +0000 (06:13 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* commands/sleep.c: Fix warning about implicit declaration.
* disk/memdisk.c: Likewise.
* loader/aout.c: Likewise.
* loader/i386/bsd_normal.c: Likewise.
* util/grub-probe.c: Likewise.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 05:05:01 +0000 (05:05 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* commands/i386/cpuid.c (has_longmode): Make static.
* disk/i386/pc/biosdisk.c (cd_drive): Likewise.
* include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.

16 years ago2008-03-30 Pavel Roskin <proski@gnu.org>
proski [Sun, 30 Mar 2008 04:13:47 +0000 (04:13 +0000)]
2008-03-30  Pavel Roskin  <proski@gnu.org>

* kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
GDT.  This is more robust, as %ds can change.
(grub_biosdisk_rw_int13_extensions): Don't clear %ds before
calling real_to_prot().
(grub_biosdisk_get_diskinfo_int13_extensions): Likewise.

16 years ago2008-03-28 Pavel Roskin <proski@gnu.org>
proski [Fri, 28 Mar 2008 17:16:46 +0000 (17:16 +0000)]
2008-03-28  Pavel Roskin  <proski@gnu.org>

* kern/i386/pc/startup.S: Assert that uncompressed functions
don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
* kern/i386/pc/lzo1x.S: Remove all .align directives in the
code, as they push parts of the code (error handlers) beyond
GRUB_KERNEL_MACHINE_RAW_SIZE.  Speed is not as important in this
code as correctness and size.

16 years ago2008-03-28 Pavel Roskin <proski@gnu.org>
proski [Fri, 28 Mar 2008 17:06:29 +0000 (17:06 +0000)]
2008-03-28  Pavel Roskin  <proski@gnu.org>

* kern/i386/pc/startup.S
(grub_biosdisk_get_diskinfo_int13_extensions): When converting
data block address to the real mode, keep offset minimal.  This
works around a bug in AWARD BIOS on old Athlon systems, which
makes CD detection hang.

16 years ago2008-03-26 Pavel Roskin <proski@gnu.org>
proski [Wed, 26 Mar 2008 13:01:02 +0000 (13:01 +0000)]
2008-03-26  Pavel Roskin  <proski@gnu.org>

* normal/color.c (grub_parse_color_name_pair): Make `name' a
const.
* include/grub/normal.h: Add grub_parse_color_name_pair()
declaration.

16 years agoRegenerate
proski [Tue, 25 Mar 2008 02:52:15 +0000 (02:52 +0000)]
Regenerate

16 years ago2008-03-24 Bean <bean123ch@gmail.com>
bean [Mon, 24 Mar 2008 04:13:37 +0000 (04:13 +0000)]
2008-03-24  Bean  <bean123ch@gmail.com>

* disk/i386/pc/biosdisk.c (cd_start): Removed.
(cd_count): Removed.
(cd_drive): New variable.
(grub_biosdisk_get_drive): Don't check for (cdN) device.
(grub_biosdisk_call_hook): Likewise.
(grub_biosdisk_iterate): Change cdrom detection method.
(grub_biosdisk_open): Replace cd_start with cd_drive.
(GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
detect cdrom device.

* include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
Removed.
(GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
(GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
(GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
(GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
(GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
(grub_biosdisk_cdrp): New structure.
(grub_biosdisk_get_cdinfo_int13_extensions): New function.

* include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.

* kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
device.

* kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
New function.

16 years ago2008-03-20 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 20 Mar 2008 21:00:15 +0000 (21:00 +0000)]
2008-03-20  Robert Millan  <rmh@aybabtu.com>

        Remove 2 TiB limit in ata.mod.
        * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
        (grub_ata_dumpinfo): Print sector count with 0x%llx.
        (grub_ata_identify): Interpret `&info16[100]' as a pointer to
        grub_uint64_t instead of grub_uint32_t.

16 years ago2008-03-05 Bean <bean123ch@gmail.com>
bean [Wed, 5 Mar 2008 05:09:35 +0000 (05:09 +0000)]
2008-03-05  Bean  <bean123ch@gmail.com>

* loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
(grub_multiboot): Set boot device.

* boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.

16 years ago2008-03-02 Bean <bean123ch@gmail.com>
bean [Sun, 2 Mar 2008 08:16:52 +0000 (08:16 +0000)]
2008-03-02  Bean  <bean123ch@gmail.com>

* fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
symlink_buffer.

16 years agoFix wrong commit date.
robertmh [Sat, 1 Mar 2008 22:03:15 +0000 (22:03 +0000)]
Fix wrong commit date.

16 years ago2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sat, 1 Mar 2008 17:27:51 +0000 (17:27 +0000)]
2008-03-01  Yoshinori K. Okuji  <okuji@enbug.org>

    * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
    texinfo.tex.

    * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
    modified.

    * docs/fdl.texi: New file.

    * docs/mdate-sh: New file. Copied from gnulib.
    * docs/texinfo.tex: Likewise.

    * config.guess: Updated from gnulib.
    * install-sh: Likewise.

16 years ago2008-02-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Feb 2008 13:04:35 +0000 (13:04 +0000)]
2008-02-28  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
        (aout_mod_SOURCES): New variable.
        (aout_mod_CFLAGS): Likewise.
        (aout_mod_LDFLAGS): Likewise.

        * conf/i386-ieee1275.rmk: Likewise.

16 years ago2008-02-28 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 28 Feb 2008 10:39:42 +0000 (10:39 +0000)]
2008-02-28  Robert Millan  <rmh@aybabtu.com>

        * util/update-grub.in: Reorganise terminal validity check.  Accept
        `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
        Based on suggestion by Franklin PIAT.

16 years ago2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
robertmh [Thu, 28 Feb 2008 10:11:06 +0000 (10:11 +0000)]
2008-02-28  Fabian Greffrath  <greffrath@leat.rub.de>

        * include/grub/util/getroot.h (grub_util_check_block_device): Export new
        function.
        * util/getroot.c (grub_util_check_block_device): New function that
        returns the given argument if it is a block device and returns NULL else.
        * util/grub-probe.c (argument_is_device): New variable.
        (probe): Promote device_name from a variable to an argument. Receive
        device_name from grub_util_check_block_device() if path is NULL and from
        grub_guess_root_device() else. Do not free() device_name anymore.
        (options): Introduce new parameter '-d, --device'.
        (main): Add description of the new parameter to the help screen.
        Rename path variable to argument. Set argument_is_device if the '-d'
        option is given. Pass argument to probe() depending on
        argument_is_device.

16 years ago2008-02-24 Bean <bean123ch@gmail.com>
bean [Sun, 24 Feb 2008 15:34:15 +0000 (15:34 +0000)]
2008-02-24  Bean  <bean123ch@gmail.com>

* fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
(GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
(GRUB_ISO9660_VOLDESC_SUPP): Likewise.
(GRUB_ISO9660_VOLDESC_PART): Likewise.
(GRUB_ISO9660_VOLDESC_END): Likewise.
(grub_iso9660_primary_voldesc): New member escape.
(grub_iso9660_data): New member joliet.
(grub_iso9660_convert_string): New function.
(grub_iso9660_mount): Detect joliet extension.
(grub_iso9660_iterate_dir): Convert filename when joliet is detected.
(grub_iso9660_iso9660_label): Likewise.

* conf/common.rmk (pkgdata_MODULES): Add udf.mod.
(grub_setup_SOURCES): Add fs/udf.c.
(grub_fstest_SOURCES): Likewise.
(udf_mod_SOURCES): New variable.
(udf_mod_CFLAGS): Likewise.
(udf_mod_LDFLAGS): Likewise.

* conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
(grub_emu_SOURCES): Likewise.

* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.

* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.

* fs/udf.c: New file.

16 years ago2008-02-24 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 24 Feb 2008 15:06:30 +0000 (15:06 +0000)]
2008-02-24  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): New variables.
        * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): Likewise.
        * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): Likewise.
        * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): Likewise.
        * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): Likewise.
        * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
        (normal/lexer.c_DEPENDENCIES): Likewise.

16 years ago2008-02-23 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 23 Feb 2008 20:33:32 +0000 (20:33 +0000)]
2008-02-23  Robert Millan  <rmh@aybabtu.com>

        * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
        since they were intended to be in hex.  This didn't break previously
        because of a bug in gpt_partition_map_iterate() (see below).

        (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
        when checking the validity of GPT header.
        Remove `partno', since it always provides the same information as `i'.

16 years ago2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Thu, 21 Feb 2008 21:22:23 +0000 (21:22 +0000)]
2008-02-21  Yoshinori K. Okuji  <okuji@enbug.org>

    * include/grub/efi/time.h: Fix a wrong comment.

16 years ago2008-02-19 Pavel Roskin <proski@gnu.org>
proski [Tue, 19 Feb 2008 19:52:42 +0000 (19:52 +0000)]
2008-02-19  Pavel Roskin  <proski@gnu.org>

* kern/rescue.c (grub_enter_rescue_mode): Improve initial
message.

16 years ago2008-02-19 Bean <bean123ch@gmail.com>
bean [Tue, 19 Feb 2008 16:40:45 +0000 (16:40 +0000)]
2008-02-19  Bean  <bean123ch@gmail.com>

* conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
(aout_mod_SOURCES): New variable.
(aout_mod_CFLAGS): Likewise.
(aout_mod_LDFLAGS): Likewise.
(_bsd_mod_SOURCES): New variable.
(_bsd_mod_CFLAGS): Likewise.
(_bsd_mod_LDFLAGS): Likewise.
(bsd_mod_SOURCES): New variable.
(bsd_mod_CFLAGS): Likewise.
(bsd_mod_LDFLAGS): Likewise.

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

* include/grub/i386/loader.h (grub_unix_real_boot): New function.

* include/grub/i386/bsd.h: New file.

* include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
to make it public.

* kern/elf.c (grub_elf32_load): Get the physical address after the hook
function is called, so that it's possible to change it inside the hook.
(grub_elf64_load): Likewise.
(grub_elf_file): Don't close the file if elf header is not found.
(grub_elf_close): Close the file if grub_elf_file fails (The new
grub_elf_file won't close it).
(grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
(grub_elf64_size): Likewise.

* kern/i386/loader.S (grub_unix_real_boot): New function.

* loader/aout.c: New file.

* loader/i386/bsd.c: New file.

* loader/i386/bsd_normal.c: New file.

* loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.

* loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
can test othe formats.

16 years agoforgot "cvs add" ...
robertmh [Tue, 19 Feb 2008 14:16:29 +0000 (14:16 +0000)]
forgot "cvs add" ...

16 years ago2008-02-19 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 19 Feb 2008 14:00:11 +0000 (14:00 +0000)]
2008-02-19  Robert Millan  <rmh@aybabtu.com>

        * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
        (grub_gpt_partition_type_empty): Redefine with macro from
        `<grub/gpt_partition.h>'.
        (gpt_partition_map_iterate): Adjust partition type comparison.

        Export `entry' as partmap-specific `part.data' struct.
        (grub_gpt_header, grub_gpt_partentry): Move from here ...

        * include/grub/gpt_partition.h (grub_gpt_header)
        (grub_gpt_partentry): ... to here (new file).

        * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.

        (grub_gpt_partition_type_bios_boot): New const variable, defined
        with macro from `<grub/gpt_partition.h>'.

        (setup): Replace `first_start' with `embed_region', which keeps
        track of the embed region (and is partmap-agnostic).

        Replace find_first_partition_start() with find_usable_region(),
        which finds a usable region for embedding using partmap-specific
        knowledge (supports PC/MSDOS and GPT).

        Fix all assumptions that the embed region start at sector 1, using
        `embed_region.start' from now on.  Similarly, use `embed_region.end'
        rather than `first_start' to calculate available size.

        In grub_util_info() message, replace "into after the MBR" with an
        indication of the specific sector our embed region starts at.

16 years ago2008-02-19 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 19 Feb 2008 07:33:41 +0000 (07:33 +0000)]
2008-02-19  Robert Millan  <rmh@aybabtu.com>

        * DISTLIST: Replace `commands/ieee1275/halt.c' and
        `commands/ieee1275/reboot.c' with `commands/halt.c' and
        `commands/reboot.c'.
        * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
        (halt_mod_SOURCES): Likewise.
        * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
        (halt_mod_SOURCES): Likewise.

16 years ago2008-02-17 Christian Franke <franke@computer.org>
robertmh [Sun, 17 Feb 2008 13:52:18 +0000 (13:52 +0000)]
2008-02-17  Christian Franke  <franke@computer.org>

        * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.

16 years ago2008-02-17 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 17 Feb 2008 10:32:02 +0000 (10:32 +0000)]
2008-02-17  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
        set `first_start' to 0 for non-PC/MSDOS partition maps.

16 years ago2008-02-16 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 16 Feb 2008 22:31:35 +0000 (22:31 +0000)]
2008-02-16  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
        do not assume partition map is PC/MSDOS before performing checks that
        are specific to that layout.

16 years ago2008-02-13 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 13 Feb 2008 20:04:37 +0000 (20:04 +0000)]
2008-02-13  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
        `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
        * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.

16 years ago2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Wed, 13 Feb 2008 03:35:48 +0000 (03:35 +0000)]
2008-02-13  Yoshinori K. Okuji  <okuji@enbug.org>

    * configure.ac: Only a cosmetic change on the handling of
      -fno-stack-protector.

16 years ago2008-02-12 Alexandre Boeglin <alex@boeglin.org>
boeglin [Tue, 12 Feb 2008 23:47:07 +0000 (23:47 +0000)]
2008-02-12  Alexandre Boeglin  <alex@boeglin.org>

  * conf/i386-efi.rmk (grub_emu_SOURCES): Replace commands/i386/pc/halt.c and
  reboot.c by commands/halt.c and reboot.c.
  (grub_install_SOURCES): Add halt.mod and reboot.mod.
  (halt_mod_SOURCES): New variable.
  (halt_mod_CFLAGS): Likewise.
  (halt_mod_LDFLAGS): Likewise.
  (reboot_mod_SOURCES): Likewise.
  (reboot_mod_CFLAGS): Likewise.
  (reboot_mod_LDFLAGS): Likewise.

  * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace commands/ieee1275/halt.c
  and reboot.c by commands/halt.c and reboot.c.
  (halt_mod_SOURCES): Likewise.
  (reboot_mod_SOURCES): Likewise.

  * conf/i386-pc.rmk (grub_emu_SOURCES): Replace commands/i386/pc/reboot.c by
  commands/reboot.c.
  (reboot_mod_SOURCES): Likewise.

  * commands/i386/pc/reboot.c: merge this file ...

  * commands/ieee1275/reboot.c: ... and this file ...

  * commands/reboot.c: ... to this file.
  Add some precompiler directive to include the correct header for each
  machine.

  * commands/ieee1275/halt.c: move this file ...

  * commands/halt.c: ... to here.
  Add some precompiler directive to include the correct header for each
  machine.

  * include/grub/efi/efi.h (grub_reboot): New function declaration.
  (grub_halt): Likewise.

  * kern/efi/efi.c (grub_reboot): New function.
  (grub_halt): Likewise.

16 years ago2008-02-12 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 12 Feb 2008 22:45:58 +0000 (22:45 +0000)]
2008-02-12  Robert Millan  <rmh@aybabtu.com>

        * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
        /dev (like it is done for /dev/mapper).  This doesn't provide support
        for EVMS, but at least it is now easy to identify the problem when it
        arises.

16 years ago2008-02-11 Robert Millan <rmh@aybabtu.com>
robertmh [Mon, 11 Feb 2008 15:47:35 +0000 (15:47 +0000)]
2008-02-11  Robert Millan  <rmh@aybabtu.com>

        * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
        (grub_util_biosdisk_get_grub_dev): Check open() exit status by
        comparing it with -1, not 0.

16 years ago2008-02-10 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 10 Feb 2008 20:00:37 +0000 (20:00 +0000)]
2008-02-10  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
        `disk/lvm.c'.
        * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
        * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.

        * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
        `disk/lvm.c' to the end of the list.
        * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
        * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.

16 years ago2008-02-10 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 10 Feb 2008 17:05:10 +0000 (17:05 +0000)]
2008-02-10  Robert Millan  <rmh@aybabtu.com>

        * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'.  Call
        grub_print_error() instead.  This will let user know why we're entering
        rescue mode.
        Based on suggestions from Sam Morris.

16 years ago2008-02-10 Alexandre Boeglin <alex@boeglin.org>
boeglin [Sun, 10 Feb 2008 15:18:03 +0000 (15:18 +0000)]
2008-02-10  Alexandre Boeglin  <alex@boeglin.org>

  * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
  on remaining N args, instead of "--" arg N times.

16 years ago2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
chaac [Sun, 10 Feb 2008 11:04:38 +0000 (11:04 +0000)]
2008-02-09  Vesa Jaaskelainen  <chaac@nic.fi>

        * font/manager.c (unknown_glyph): Added variable for unknown glyph.
        (fill_with_default_glyph): Changed to use unknown_glyph for fill
        pattern for unknown glyphs.

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 12:31:11 +0000 (12:31 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * configure.ac: Probe for `help2man'.
        * Makefile.in (builddir): New variable.
        (HELP2MAN): Likewise.  Set to `true' when @HELP2MAN@ doesn't provide it,
        or otherwise add a few flags/options to it.
        (install-local): For every executable utility or script that is
        installed, invoke $(HELP2MAN) to install a manpage based on --help
        output.

        * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
        that it doesn't prevent --help from working in build tree.

        * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
        with `bug-grub@gnu.org'.
        * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
        * util/update-grub.in (usage): New function.
        Implement proper argument check, with support for --help and --version
        (as well as existing -y).

16 years ago2008-02-08 Christian Franke <franke@computer.org>
robertmh [Sat, 9 Feb 2008 11:02:26 +0000 (11:02 +0000)]
2008-02-08  Christian Franke  <franke@computer.org>

        * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
        avoid overwriting previous output.
        * kern/rescue.c (grub_rescue_cmd_cat): Likewise.

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 11:00:19 +0000 (11:00 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * normal/menu.c (run_menu): If timeout is set to zero, don't bother
        drawing the menu.

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 10:58:19 +0000 (10:58 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * commands/sleep.c: New file.
        * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
        (sleep_mod_SOURCES): New variable.
        (sleep_mod_CFLAGS): Likewise.
        (sleep_mod_LDFLAGS): Likewise.

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 10:54:44 +0000 (10:54 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
        situations in which we can deduce the RAID size and the superblock
        doesn't match it.

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 10:49:29 +0000 (10:49 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function.  Construct
        and return a grub_diskmemberlist_t composed of LVM physical volumes.
        [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.

        * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function.  Construct
        and return a grub_diskmemberlist_t composed of physical array members.
        [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.

        * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
        prototype.
        [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
        [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
        [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.

        * util/grub-probe.c (probe): Move partmap probing code from here ...
        (probe_partmap): ... to here.
        (probe): Use probe_partmap() once for the disk we're probing, and
        additionally, when such disk contains a memberlist() struct member,
        once for each disk that is contained in the structure returned by
        memberlist().

16 years ago2008-02-09 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 9 Feb 2008 10:46:37 +0000 (10:46 +0000)]
2008-02-09  Robert Millan  <rmh@aybabtu.com>

        * util/grub-probe.c (main): When `verbosity > 1', set `debug'
        environment variable to 'all' in order to obtain debug output from
        non-util/ code.
        * util/i386/pc/grub-setup.c (main): Likewise.

16 years ago2008-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 8 Feb 2008 22:39:29 +0000 (22:39 +0000)]
2008-02-08  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c (grub_raid_scan_device): Check for
        `array->device[sb.this_disk.number]' rather than for
        `array->device[sb.this_disk.number]->name', since the latter is not
        garanteed to be accessible.

16 years ago2008-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 8 Feb 2008 21:27:55 +0000 (21:27 +0000)]
2008-02-08  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c: Update copyright.
        * fs/cpio.c: Likewise.
        * include/grub/raid.h: Likewise.
        * loader/i386/pc/multiboot.c: Likewise.
        * util/hostfs.c: Likewise.

16 years ago2008-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 8 Feb 2008 12:32:25 +0000 (12:32 +0000)]
2008-02-08  Robert Millan  <rmh@aybabtu.com>

        * include/grub/raid.h (struct grub_raid_array): Change type of `device'
        to a grub_disk_t array.
        * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
        `device[x]'.
        (grub_raid_scan_device): Replace `device[x].name' accesses with
        `device[x]->name'.  Simplify initialization of `array->device[x]'.

16 years ago2008-02-08 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 8 Feb 2008 12:22:51 +0000 (12:22 +0000)]
2008-02-08  Robert Millan  <rmh@aybabtu.com>

        * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
        grub_dprintf() calls.
        * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
        error message.

16 years ago2008-02-07 Christian Franke <franke@computer.org>
robertmh [Thu, 7 Feb 2008 22:14:33 +0000 (22:14 +0000)]
2008-02-07  Christian Franke  <franke@computer.org>

        * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
        instead of fseek and ftell to support large files.
        (grub_hostfs_read): Likewise.

16 years ago2008-02-07 Robert Millan <rmh@aybabtu.com>
robertmh [Thu, 7 Feb 2008 12:46:45 +0000 (12:46 +0000)]
2008-02-07  Robert Millan  <rmh@aybabtu.com>

        Patch from Jeroen Dekkers.
        * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
        failure, since succesfuly reading all array members might not be
        required.

16 years ago2008-02-06 Robert Millan <rmh@aybabtu.com>
robertmh [Wed, 6 Feb 2008 21:06:34 +0000 (21:06 +0000)]
2008-02-06  Robert Millan  <rmh@aybabtu.com>

        * util/grub-probe.c (probe): Simplify partmap probing (with the
        assumption that the first word up to the underscore equals to
        the module name).

16 years ago2008-02-06 Christian Franke <franke@computer.org>
bean [Wed, 6 Feb 2008 19:57:40 +0000 (19:57 +0000)]
2008-02-06  Christian Franke  <franke@computer.org>

* fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
(and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
last block of a cpio or tar stream.
Check for "TRAILER!!!" instead of any empty data
block to detect last block of a cpio stream.
(grub_cpio_dir): Fix constness of variable np.
(grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
cpio or tar trailer is detected.  This fixes a crash
on open of a non existing file.

16 years ago2008-02-05 Bean <bean123ch@gmail.com>
bean [Wed, 6 Feb 2008 16:02:44 +0000 (16:02 +0000)]
2008-02-05  Bean  <bean123ch@gmail.com>

* loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
address of entry.
(grub_multiboot_load_elf64): Likewise.
(grub_multiboot): Initialize mbi structure.

* util/grub-fstest.c: Don't include unused header file script.h.

* conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the begginning
of file.
(grub_fstest_SOURCES): Likewise.

16 years ago2008-02-05 Robert Millan <rmh@aybabtu.com>
robertmh [Tue, 5 Feb 2008 10:23:24 +0000 (10:23 +0000)]
2008-02-05  Robert Millan  <rmh@aybabtu.com>

        * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
        (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
        (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
        (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.

        * kern/i386/pc/startup.S: Include `<grub/term.h>'.
        (translation_table): Replace hardcoded values with macros
        provided by `<grub/term.h>'.

        * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
        (keyboard_map): Correct/add a few values, with macros provided
        by `<grub/term.h>'.
        (keyboard_map_shift): Zero values that don't differ from their
        `keyboard_map' equivalents.
        (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
        Discard the second scan code that is always sent by Caps lock.
        Only use `keyboard_map_shift' when it provides a non-zero value,
        otherwise fallback to `keyboard_map'.

16 years ago2008-02-04 Bean <bean123ch@gmail.com>
bean [Mon, 4 Feb 2008 08:45:07 +0000 (08:45 +0000)]
2008-02-04  Bean  <bean123ch@gmail.com>

* Makefile.in (enable_grub_fstest): New variable.

* conf/common.rmk (grub_fstest_init.lst): New rule.
(grub_fstest_init.h): Likewise.
(grub_fstest_init.c): Likewise.
(util/grub-fstest.c_DEPENDENCIES): New variable.
(grub_fstest_SOURCES): Likewise.

* configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.

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

16 years ago2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 3 Feb 2008 21:53:32 +0000 (21:53 +0000)]
2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>

    Make grub-setup handle a separate root device.

    * util/i386/pc/grub-setup.c (setup): Always open the root device,
    so that the root device can be compared with the destination
    device.
    When embedding the core image, if the root and destination devices
    are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
    0xFF.
    When not embedding, set ROOT_DRIVE to 0xFF.

16 years ago2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 3 Feb 2008 18:56:08 +0000 (18:56 +0000)]
2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>

    Add support for having a grub directory in a different drive. This
    is still only the data handling part.

    * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
    (codestart): Save %dh in GRUB_ROOT_DRIVE.
    (grub_root_drive): New variable.

    * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
    instead of GRUB_BOOT_DRIVE to construct a device name. Set
    GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
    as it was.

    * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.

    * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
    macro.
    (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.

    * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
    is bogus, because PXE booting does not specify any drive
    correctly.

    * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
    am not sure if this is really correct.

    * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
    is always identical to the boot drive when booting from a CD.

    * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
    longer.
    (root_drive): New variable.
    (real_start): Unconditionally set %dh to ROOT_DRIVE.
    (setup_sectors): Push %dx right after popping it, because %dh will
    be modified later.
    (copy_buffer): Restore %dx.

16 years ago2008-02-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Feb 2008 18:30:20 +0000 (18:30 +0000)]
2008-02-03  Robert Millan  <rmh@aybabtu.com>

        * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
        use `cdboot.img' for cdrom images.

16 years ago2008-02-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Feb 2008 18:27:41 +0000 (18:27 +0000)]
2008-02-03  Robert Millan  <rmh@aybabtu.com>

        * util/grub.d/00_header.in: Issue scripting commands for GRUB to
        only setup gfxterm when `font' command has succeeded.

16 years ago2008-02-03 Robert Millan <rmh@aybabtu.com>
robertmh [Sun, 3 Feb 2008 18:26:00 +0000 (18:26 +0000)]
2008-02-03  Robert Millan  <rmh@aybabtu.com>

        * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
        (grub_rescue_cmd_multiboot_loader)
        (grub_rescue_cmd_module_loader): Enable multiboot1 calls.

16 years ago2008-02-03 Pavel Roskin <proski@gnu.org>
proski [Sun, 3 Feb 2008 18:04:36 +0000 (18:04 +0000)]
2008-02-03  Pavel Roskin  <proski@gnu.org>

* a/kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
%edx and %esi from stack only after grub_gate_a20() is called.
grub_gate_a20() clobbers %edx.

16 years ago2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
okuji [Sun, 3 Feb 2008 13:57:54 +0000 (13:57 +0000)]
2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>

    * configure.ac (AC_INIT): Bumped to 1.96.

    * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
    commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
    include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
    video/readers/png.c.

16 years ago2008-01-31 Bean <bean123ch@gmail.com>
bean [Sun, 3 Feb 2008 08:27:15 +0000 (08:27 +0000)]
2008-01-31  Bean  <bean123ch@gmail.com>

        * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
        (cdboot_img_SOURCES): New variable.
        (cdboot_img_ASFLAGS): New variable.
        (cdboot_img_LDFLAGS): New variable.

        * boot/i386/pc/cdboot.S: New file.

        * disk/i386/pc/biosdisk.c (cd_start): New variable.
        (cd_count): Likewise.
        (grub_biosdisk_get_drive): Add support for cd device.
        (grub_biosdisk_call_hook): Likewise.
        (grub_biosdisk_iterate): Likewise.
        (grub_biosdisk_open): Likewise.
        (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
        (grub_biosdisk_rw): Support reading from cd device.
        (GRUB_MOD_INIT): Iterate cd devices.

        * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
        (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
        (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.

        * kern/i386/pc/init.c (make_install_device): Check for cd device.

16 years ago2008-02-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Feb 2008 20:35:08 +0000 (20:35 +0000)]
2008-02-02  Robert Millan  <rmh@aybabtu.com>

        * commands/read.c: New file.
        * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
        (read_mod_SOURCES): New variable.
        (read_mod_CFLAGS): Likewise.
        (read_mod_LDFLAGS): Likewise.

16 years ago2008-02-02 Robert Millan <rmh@aybabtu.com>
robertmh [Sat, 2 Feb 2008 16:48:52 +0000 (16:48 +0000)]
2008-02-02  Robert Millan  <rmh@aybabtu.com>

        * normal/main.c (grub_normal_execute): Check for `menu->size' when
        determining whether menu has to be displayed.

16 years ago2008-02-02 Marco Gerards <marco@gnu.org>
marco_g [Sat, 2 Feb 2008 15:33:05 +0000 (15:33 +0000)]
2008-02-02  Marco Gerards  <marco@gnu.org>

* bus/pci.c: New file.

* include/grub/pci.h: Likewise.

* include/grub/i386/pc/pci.h: Likewise.

* commands/lspci.c: Likewise.

* conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
`lspci.mod'.
(pci_mod_SOURCES): New variable.
(pci_mod_CFLAGS): Likewise.
(pci_mod_LDFLAGS): Likewise.
(lspci_mod_SOURCES): Likewise.
(lspci_mod_CFLAGS): Likewise.
(lspci_mod_LDFLAGS): Likewise.

16 years ago2008-02-02 Bean <bean123ch@gmail.com>
bean [Sat, 2 Feb 2008 14:15:31 +0000 (14:15 +0000)]
2008-02-02  Bean  <bean123ch@gmail.com>

        * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
        (grub_ufs_get_file_block): Fix indirect block calculation problem.

        * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
        (grub_xfs_btree_node): New structure.
        (grub_xfs_btree_root): New structure.
        (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
        (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
        (GRUB_XFS_EXTENT_BLOCK): Likewise.
        (GRUB_XFS_EXTENT_SIZE): Likewise.
        (grub_xfs_read_block): Support btree format type.
        (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
        Use directory block as basic unit.

        * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.

        * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
        __attribute__ ((__regparm__ (1))).

16 years ago2008-02-01 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 1 Feb 2008 18:54:52 +0000 (18:54 +0000)]
2008-02-01  Robert Millan  <rmh@aybabtu.com>

        Correct a mistake in previous commit.

        * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
        top.
        (normal/command.c_DEPENDENCIES): New variable.

16 years ago2008-02-01 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 1 Feb 2008 15:45:17 +0000 (15:45 +0000)]
2008-02-01  Robert Millan  <rmh@aybabtu.com>

        * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
        top.
        (normal/command.c_DEPENDENCIES): New variable.
        (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
        * conf/i386-ieee1275.rmk: Likewise.
        * conf/i386-linuxbios.rmk: Likewise.
        * conf/i386-pc.rmk: Likewise.
        * conf/sparc64-ieee1275.rmk: Likewise.
        * conf/powerpc-ieee1275.rmk: Likewise.
        (grub_emu_SOURCES): Add `fs/fshelp.c'.

        * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.

16 years ago2008-02-01 Robert Millan <rmh@aybabtu.com>
robertmh [Fri, 1 Feb 2008 00:50:19 +0000 (00:50 +0000)]
2008-02-01  Robert Millan  <rmh@aybabtu.com>

        * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
        call at beginning of function.

16 years agoBetter describe the last change made to conf/powerpc-ieee1275.rmk
proski [Thu, 31 Jan 2008 20:12:16 +0000 (20:12 +0000)]
Better describe the last change made to conf/powerpc-ieee1275.rmk

16 years ago2008-01-31 Pavel Roskin <proski@gnu.org>
proski [Thu, 31 Jan 2008 17:09:39 +0000 (17:09 +0000)]
2008-01-31  Pavel Roskin  <proski@gnu.org>

* util/powerpc/ieee1275/grub-mkrescue.in: New file.
* conf/powerpc-ieee1275.rmk: Add grub-mkrescue support for
PowerPC.
* DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.