1. 03 Feb, 2007 1 commit
  2. 13 Dec, 2006 2 commits
    • tschwinge's avatar
      Regenerate files. · fd3e4ea5
      tschwinge authored
      fd3e4ea5
    • tschwinge's avatar
      2006-12-13 Thomas Schwinge <tschwinge@gnu.org> · 4fe9862e
      tschwinge authored
      	* Makefile.in (enable_grub_emu): New variable.
      	* configure.ac (--enable-grub-emu): New option.
      	Do the checks for (n)curses only if `--enable-grub-emu' is requested.
      	* conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
      	* conf/i386-pc.rmk: Likewise.
      	* conf/powerpc-ieee1275.rmk: Likewise.
      	* conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
      4fe9862e
  3. 12 Dec, 2006 1 commit
    • marco_g's avatar
      2006-12-12 Marco Gerards <marco@gnu.org> · a8aa5762
      marco_g authored
      	* include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
      
      	* kern/env.c (grub_env_unset): Don't free the member `value' when
      	the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
      	pointer.
      
      	* normal/main.c (current_menu): Removed.
      	(free_menu): Unset the `menu' environment variable.
      	(grub_normal_menu_addentry): Make use of the environment variable
      	`menu', instead of using the global `current_menu'.  Allocate
      	memory for the sourcecode of this entry.
      	(read_config_file): New argument `nested', changed all callers.
      	Only in the case of a new context, initialize a new menu.  Set the
      	`menu' environment variable.
      	(grub_normal_execute): Don't set and unset the environment
      	variable `menu' here anymore.  Only free the menu when leaving the
      	context.
      
      	* util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
      	leak.
      a8aa5762
  4. 11 Dec, 2006 1 commit
  5. 08 Dec, 2006 1 commit
  6. 25 Nov, 2006 1 commit
  7. 10 Nov, 2006 1 commit
    • jeroen's avatar
      2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx> · 790707f2
      jeroen authored
      	* kern/disk.c (grub_disk_read): When there is a read error, always
      	try to read only the necessary data.
      
      	* conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
      	disk/raid.c.
      	* include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
      	prototype.
      	[GRUB_UTIL] (grub_raid_fini): Likewise.
      	[GRUB_UTIL] (grub_lvm_init): Likewise.
      	[GRUB_UTIL] (grub_lvm_fini): Likewise.
      	* util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
      	RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
      	(main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
      	and grub_raid_fini().
      790707f2
  8. 09 Nov, 2006 1 commit
  9. 08 Nov, 2006 1 commit
  10. 03 Nov, 2006 3 commits
    • hollisb's avatar
      2006-11-03 Hollis Blanchard <hollis@penguinppc.org> · ae4f23bf
      hollisb authored
      	* kern/elf.c (grub_elf_file): Call grub_file_seek. Call
      	grub_error_push and grub_error_pop in the error-handling path.
      	(grub_elf32_load_segment): Only call grub_file_read with non-zero
      	length.
      ae4f23bf
    • hollisb's avatar
      2006-11-03 Hollis Blanchard <hollis@penguinppc.org> · 8b55db66
      hollisb authored
      	* include/grub/elfload.h: New file.
      	* kern/elf.c: Likewise.
      8b55db66
    • hollisb's avatar
      2006-11-03 Hollis Blanchard <hollis@penguinppc.org> · 2166cc83
      hollisb authored
      	* conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
      	* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
      	* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
      	(kernel_elf_SOURCES): Likewise.
      	* conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
      	* conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
      	* conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
      	* conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
      	* conf/common.rmk (pkgdata_MODULES): Add elf.mod.
      	(elf_mod_SOURCES): New variable.
      	(elf_mod_CFLAGS): Likewise.
      	(elf_mod_LDFLAGS): Likewise.
      	* include/grub/types.h (__unused): New macro.
      	* include/grub/elfload.h: New file.
      	* kern/elf.c: Likewise.
      	* loader/powerpc/ieee1275/linux.c: Include elfload.h.
      	(ELF32_LOADMASK): New macro.
      	(ELF64_LOADMASK): Likewise.
      	(vmlinux): Removed.
      	(grub_linux_load32): New function.
      	(grub_linux_load64): Likewise.
      	(grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
      	Use grub_elf_t instead of grub_file_t.
      2166cc83
  11. 02 Nov, 2006 1 commit
  12. 28 Oct, 2006 1 commit
  13. 27 Oct, 2006 3 commits
    • hollisb's avatar
      2006-10-27 Hollis Blanchard <hollis@penguinppc.org> · 67507549
      hollisb authored
      	* kern/disk.c (grub_disk_read): Correct debug printf formatting.
      67507549
    • hollisb's avatar
      2006-10-27 Hollis Blanchard <hollis@penguinppc.org> · 69203a99
      hollisb authored
      	* kern/disk.c (grub_disk_open): Print debug messages when opening a
      	disk.
      	(grub_disk_close): Print debug messages when closing a disk.
      	(grub_disk_read): Print debug messages when disk read fails.
      	* kern/fs.c (grub_fs_probe): Print debug messages when detecting
      	filesystem type.
      	* kern/partition.c: Include misc.h.
      	(grub_partition_iterate): Print debug messages when detecting
      	partition type.
      69203a99
    • hollisb's avatar
      2006-10-27 Hollis Blanchard <hollis@penguinppc.org> · e2b8278c
      hollisb authored
      	* disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
      	is negative.
      	* kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
      e2b8278c
  14. 26 Oct, 2006 1 commit
  15. 25 Oct, 2006 1 commit
  16. 18 Oct, 2006 1 commit
  17. 15 Oct, 2006 1 commit
  18. 14 Oct, 2006 7 commits
    • robertmh's avatar
      2006-10-14 Robert Millan <rmh@aybabtu.com> · a1bb27e4
      robertmh authored
      	* util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
      	with "/dev/.static/dev/md".
      a1bb27e4
    • okuji's avatar
      Updated. · df247e5e
      okuji authored
      df247e5e
    • okuji's avatar
      2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> · e0994b8b
      okuji authored
              * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
              DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
              DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
              DRIVE_NAME are always freed.
      
              * util/i386/pc/biosdisk.c (make_device_name): Add one into
              DOS_PART, as a DOS partition is counted from one instead of zero
              now. Reported by Robert Millan.
      e0994b8b
    • robertmh's avatar
      · 4dc2cf6c
      robertmh authored
      Argh, really rename grub-probefs.c as the ChangeLog says.
      4dc2cf6c
    • robertmh's avatar
      Oops. Regenerate conf/i386-efi.mk and conf/i386-pc.mk (Using: ruby genmk.rb <... · b55828aa
      robertmh authored
      Oops.  Regenerate conf/i386-efi.mk and conf/i386-pc.mk (Using: ruby genmk.rb < conf/foo.rmk > conf/foo.mk)
      b55828aa
    • robertmh's avatar
      · ddd5cee9
      robertmh authored
      2006-10-14  Robert Millan  <rmh@aybabtu.com>
      
      	* util/i386/pc/getroot.c (grub_guess_root_device): Stop using
      	grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
      	* util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
      	string returned by grub_guess_root_device.
      	* util/i386/pc/grub-setup.c: Likewise.
      	* util/i386/pc/grub-probefs.c: Likewise.
      
      	* util/i386/pc/grub-probefs.c: Rename to ...
      	* util/i386/pc/grub-probe.c: ... this.
      	* DISTLIST: Remove grub-probefs, add grub-probe.
      	* conf/i386-efi.rmk: Likewise.
      	* conf/i386-pc.rmk: Likewise.
      	* util/i386/pc/grub-install.in: Likewise.
      
      	* util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
      	choose which information we want to print.
      ddd5cee9
    • okuji's avatar
      2006-10-14 Yoshinori K. Okuji <okuji@enbug.org> · 2b002173
      okuji authored
              * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
              include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
              include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
              include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
              video/readers/tga.c and video/i386/pc/vbeutil.c.
      
      2006-10-14  Jeroen Dekkers  <jeroen@dekkers.cx>
      
              Added support for RAID and LVM.
      
              * disk/lvm.c: New file.
              * disk/raid.c: Likewise.
              * include/grub/lvm.h: Likewise.
              * include/grub/raid.h: Likewise.
              * include/grub/util/lvm.h: Likewise.
              * include/grub/util/raid.h: Likewise.
              * util/lvm.c: Likewise.
              * util/raid.c: Likewise.
      
              * include/grub/disk.h (grub_disk_dev_id): Add
              GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
              (grub_disk_get_size): New prototype.
              * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
              returns a partition.
              (grub_disk_get_size): New function.
      
              * kern/i386/pc/init.c (make_install_device): Copy the prefix
              verbatim if grub_install_dos_part is -2.
      
              * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
              and LVM devices.
      
              * util/i386/pc/grub-setup.c (setup): New argument
              MUST_EMBED. Force embedding of GRUB when the argument is
              true. Close FILE before returning.
              (main): Add support for RAID and LVM.
      
              * conf/common.rmk: Add RAID and LVM modules.
              * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
              util/lvm.c.
              (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
      
              * kern/misc.c (grub_strstr): New function.
              * include/grub/misc.h (grub_strstr): New prototype.
      2b002173
  19. 10 Oct, 2006 1 commit
  20. 05 Oct, 2006 2 commits
  21. 01 Oct, 2006 3 commits
    • hollisb's avatar
      2005-10-01 Hollis Blanchard <hollis@penguinppc.org> · 4f0acd39
      hollisb authored
      	* kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
      	PowerMac support.
      4f0acd39
    • hollisb's avatar
      2005-10-01 Hollis Blanchard <hollis@penguinppc.org> · fba51f48
      hollisb authored
      	* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
      
      	* include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
      	Remove `flags' argument.  All callers changed.
      	* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
      	(IEEE1275_IHANDLE_INVALID): New variable.
      	(IEEE1275_CELL_INVALID): New variable.
      	(grub_ieee1275_finddevice, grub_ieee1275_get_property,
      	grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
      	grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
      	grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
      	grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
      	codes from Open Firmware.  All callers updated.
      	(grub_ieee1275_next_property): Directly return Open Firmware return
      	code.
      	* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
      	Standardize error checking from `grub_ieee1275_get_property'.
      	* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
      	`devalias' to `aliases'.  Correct comments.  Consolidate error paths.
      fba51f48
    • hollisb's avatar
      2005-10-01 Hollis Blanchard <hollis@penguinppc.org> · cc6d3df3
      hollisb authored
      	* kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
      	`instance_to_package_args' to `instance_to_path_args'.
      
      	* kern/powerpc/ieee1275/init.c (grub_machine_init): Use
      	`grub_ieee1275_chosen'.
      
      	* term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
      	`grub_ieee1275_interpret'.
      cc6d3df3
  22. 26 Sep, 2006 2 commits
    • hollisb's avatar
      2005-09-25 Hollis Blanchard <hollis@penguinppc.org> · 02bb8acc
      hollisb authored
      	* util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
      02bb8acc
    • hollisb's avatar
      2005-09-25 Hollis Blanchard <hollis@penguinppc.org> · 663b72f0
      hollisb authored
      	* include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
      	(__cmpdi): Likewise.
      
      	* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
      	`flags' to `grub_ieee1275_next_property'.  Change `pathlen' to type
      	`grub_ssize_t'.
      
      	* kern/powerpc/ieee1275/cmain.c: include grub/misc.h.
      
      	* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
      	to type `grub_ssize_t'.
      	(grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
      663b72f0
  23. 22 Sep, 2006 3 commits