]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years ago * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
Vladimir 'phcoder' Serbinenko [Tue, 14 Sep 2010 18:59:00 +0000 (20:59 +0200)]
* grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.

13 years ago Don't export grub_gate_a20.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 23:08:24 +0000 (01:08 +0200)]
Don't export grub_gate_a20.

* grub-core/kern/i386/pc/init.c: Remove leftovers.
* grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
to ...
(grub_gate_a20): ... this. All users updated.
* include/grub/i386/pc/init.h: Removed. All users updated.

13 years ago Create euro.pf2 which supports most European languages.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 22:49:02 +0000 (00:49 +0200)]
Create euro.pf2 which supports most European languages.

* Makefile.am (grubdata_DATA): Add euro.pf2.
(euro.pf2): New target.
(CLEANFILES): Add euro.pf2.

13 years ago * configure.ac: Disable emu-usb by default to prevent inadvertent
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 22:21:52 +0000 (00:21 +0200)]
* configure.ac: Disable emu-usb by default to prevent inadvertent
device takeover.

13 years ago Disable usbserial on grub-emu since our libusb code isn't good enough
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 22:08:07 +0000 (00:08 +0200)]
Disable usbserial on grub-emu since our libusb code isn't good enough
yet.

* grub-core/Makefile.core.def (usbserial_common): Disable on emu.
(usbserial_pl2303): Likewise.
(usbserial_ftdi): Likewise.

13 years ago * include/grub/disk.h (grub_disk): Remove has_partitions.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 21:59:22 +0000 (23:59 +0200)]
* include/grub/disk.h (grub_disk): Remove has_partitions.
All users updated.
* disk/loopback.c (grub_loopback): Remove has_partitions.
All users updated.
(options): Remove partitions. All users updated.
* util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
* util/i386/pc/grub-setup.c (setup): copy partition table only when
actual partition table is found.

13 years ago Remove readability checks (too many false negatives).
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 20:18:03 +0000 (22:18 +0200)]
Remove readability checks (too many false negatives).

* util/grub-install.in: Remove readability checks.
* util/grub-mkconfig.in: Likewise.
* util/grub.d/10_hurd.in: Likewise.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
way.

13 years ago Enable acpi shutdown on all ACPI platforms.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 18:29:15 +0000 (20:29 +0200)]
Enable acpi shutdown on all ACPI platforms.

* grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
on coreboo, multiboot and EFI.
* grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
(grub_acpi_halt): Likewise.
* grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
(grub_cmd_halt): Don't call grub_acpi_halt directly.
* grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
* grub-core/lib/i386/halt.c (grub_halt)
[GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.

13 years ago * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 18:16:51 +0000 (20:16 +0200)]
* grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
context.

13 years ago * grub-core/video/efi_gop.c: Fix over-80-chars line.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 18:10:41 +0000 (20:10 +0200)]
* grub-core/video/efi_gop.c: Fix over-80-chars line.
* grub-core/video/efi_uga.c: Likewise.

13 years ago Filter devaliases and never open same device twice.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 17:17:29 +0000 (19:17 +0200)]
Filter devaliases and never open same device twice.

* grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
(last_ihandle): Likewise.
(ofdisk_hash_ent): New member shortest.
(ofdisk_hash_add): Add canonical path too.
(scan): New function.
(grub_ofdisk_iterate): Iterate over hashed entries.
(compute_dev_path): Don't add :0.
(grub_ofdisk_open): Don't really open the disk.
(grub_ofdisk_close): Avoid closing unrelated disk.
(grub_ofdisk_read): Implement reopen logic.
* grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
New function.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
New proto.

13 years ago Fix sparc64.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 14:49:50 +0000 (16:49 +0200)]
Fix sparc64.

* configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
* grub-core/Makefile.core.def (kernel): Make ldflags just use the
right address. Add sparc64_ieee1275_ldflags.
* grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
* util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
to grub_host_to_target_addr
(load_image): Likewise.

13 years ago * grub-core/normal/completion.c (complete_file): Handle device
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 12:26:55 +0000 (14:26 +0200)]
* grub-core/normal/completion.c (complete_file): Handle device
containing slash.
Fix based on patch by Doug Nazar.

13 years ago grub-mknetdir script.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 12:03:05 +0000 (14:03 +0200)]
grub-mknetdir script.

* Makefile.util.def (grub-mknetdir): New module.
* tests/util/grub-shell.in: Support boot=net
* util/grub-mknetdir.in: New file.

13 years ago videoinfo on non-vbe.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 11:38:13 +0000 (13:38 +0200)]
videoinfo on non-vbe.

* grub-core/Makefile.core.def (vbeinfo): Removed.
(vbetest): Removed.
(videoinfo): New module.
* grub-core/commands/i386/pc/vbeinfo.c: Removed.
* grub-core/commands/i386/pc/vbetest.c: Removed.
* grub-core/commands/videoinfo.c: New file.
* grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
specification.
(grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
as vbetest.
(GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
(GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
* grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
mode_number. New parameter mode. All users updated.
(grub_video_gop_iterate): New function.
(grub_video_efi_gop): New member iterate.
* grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
(grub_vbe_set_video_mode): Remove setting useless fields.
(vbe2videoinfo): New function.
(grub_video_vbe_iterate): Likewise.
(grub_video_vbe_setup): Use vbe2videoinfo.
(grub_video_vbe_print_adapter_specific_info): New function.
(grub_video_vbe_adapter): New fields iterate and
print_adapter_specific_info.
* include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
All users updated.
(grub_video_mode_info): New field mode_number.
(grub_video_adapter): New fields iterate and
print_adapter_specific_info.

13 years ago * grub-core/commands/efi/lsefisystab.c: New file.
Tristan Gingold [Mon, 13 Sep 2010 11:14:44 +0000 (13:14 +0200)]
* grub-core/commands/efi/lsefisystab.c: New file.
* grub-core/commands/efi/lssal.c: Likewise.
* grub-core/Makefile.core.def (lsacpi): New module.
(lsefisystab): Likewise.
* include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
(GRUB_EFI_HCDP_TABLE_GUID): Likewise.
(grub_efi_sal_system_table): New struct.
(grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
(grub_efi_sal_system_table_memory_descriptor): Likewise.
(grub_efi_sal_system_table_platform_features): Likewise.
(grub_efi_sal_system_table_translation_register_descriptor): Likewise.
(grub_efi_sal_system_table_purge_translation_coherence): Likewise.
(grub_efi_sal_system_table_ap_wakeup): Likewise.
* include/grub/types.h (PRIuGRUB_UINT64_T): New definition.

Also-By: Robert Millan <rmh.grub@aybabtu.com>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
13 years ago Support explicit user claim that a device is BIOS-visible.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 11:09:58 +0000 (13:09 +0200)]
Support explicit user claim that a device is BIOS-visible.

* grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
* grub-core/kern/emu/hostdisk.c
(convert_system_partition_to_system_disk): Support mdX.
(find_system_device): New parameter add. All users updated.
(grub_util_biosdisk_is_present): New function.
* include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
proto.

13 years ago Search hints support.
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 11:01:41 +0000 (13:01 +0200)]
Search hints support.

* commands/search.c (FUNC_NAME): New arguments hints and nhints.
All users updated.

13 years agoAdd missing ChangeLog
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 10:17:22 +0000 (12:17 +0200)]
Add missing ChangeLog

13 years agosupport subpartition hints
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 10:16:22 +0000 (12:16 +0200)]
support subpartition hints

13 years agoChange from direct arguments to --hint
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 09:48:01 +0000 (11:48 +0200)]
Change from direct arguments to --hint

13 years ago Bash completion script for util commands
Yves Blusseau [Mon, 13 Sep 2010 08:29:18 +0000 (10:29 +0200)]
Bash completion script for util commands

    * Makefile.am:  Add util/bash-completion.d directory
    * configure.ac: Likewise.
    * util/bash-completion.d/Makefile.am: New file.
    * util/bash-completion.d/grub-completion.bash.in: Likewise.

13 years agomerge mainline into hints
Vladimir 'phcoder' Serbinenko [Mon, 13 Sep 2010 00:22:10 +0000 (02:22 +0200)]
merge mainline into hints

13 years ago * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 20:05:27 +0000 (22:05 +0200)]
* grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
(print_backlog): set backlog_ucs4 and backlog_glyphs.
Reported by: Yves Blusseau.

13 years ago * grub-core/normal/misc.c (grub_normal_print_device_info): Show
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 18:18:50 +0000 (20:18 +0200)]
* grub-core/normal/misc.c (grub_normal_print_device_info): Show
partition size and offset.

13 years ago * grub-core/commands/wildcard.c (make_regex): Escape brackets.
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 18:15:30 +0000 (20:15 +0200)]
* grub-core/commands/wildcard.c (make_regex): Escape brackets.

13 years ago * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 18:12:16 +0000 (20:12 +0200)]
* grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.

13 years ago * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 12:00:44 +0000 (14:00 +0200)]
* grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
(grub_xvasprintf): Likewise.

13 years ago * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 11:55:52 +0000 (13:55 +0200)]
* grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.

13 years ago * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 11:53:12 +0000 (13:53 +0200)]
* grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
args ending with NULL.

13 years ago * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 11:50:24 +0000 (13:50 +0200)]
* grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
pointer.

13 years agoAllow specifying video mode
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 00:18:14 +0000 (02:18 +0200)]
Allow specifying video mode

13 years agoChange video_mode_type to an enum, fix collisions and add a bit more info
Vladimir 'phcoder' Serbinenko [Sun, 12 Sep 2010 00:09:09 +0000 (02:09 +0200)]
Change video_mode_type to an enum, fix collisions and add a bit more info

13 years agoAdd Hercules, Planar and YUV to videoinfo (not tested)
Vladimir 'phcoder' Serbinenko [Sat, 11 Sep 2010 23:45:58 +0000 (01:45 +0200)]
Add Hercules, Planar and YUV to videoinfo (not tested)

13 years ago * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
Szymon Janc [Sat, 11 Sep 2010 18:08:37 +0000 (20:08 +0200)]
* grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.

13 years agomerge mainline into gingold2
Vladimir 'phcoder' Serbinenko [Sat, 11 Sep 2010 16:03:47 +0000 (18:03 +0200)]
merge mainline into gingold2

13 years ago Shutdown using ACPI.
Vladimir 'phcoder' Serbinenko [Sat, 11 Sep 2010 15:59:14 +0000 (17:59 +0200)]
Shutdown using ACPI.

* grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
* grub-core/commands/acpihalt.c: New file.
* grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
* include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
(grub_acpi_halt): New proto.
(GRUB_ACPI_SLP_EN): New const.
(GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
(GRUB_ACPI_OPCODE_*): New enum.
(GRUB_ACPI_EXTOPCODE_*): Likewise.

13 years ago * commands/lsacpi.c: New file.
Tristan Gingold [Sat, 11 Sep 2010 15:48:54 +0000 (17:48 +0200)]
* commands/lsacpi.c: New file.
* grub-core/Makefile.core.def (lsacpi): New module.
* include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
(GRUB_ACPI_MADT_SIGNATURE): Likewise.
(grub_acpi_madt_entry_header): New struct.
(grub_acpi_madt): Likewise.
(grub_acpi_madt_entry_interrupt_override): Likewise.
(grub_acpi_madt_entry_sapic): Likewise.
(grub_acpi_madt_entry_lsapic): Likewise.
(grub_acpi_madt_entry_platform_int_source): Likewise.
* include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
(PRIuGRUB_UINT32_T): Likewise.
(PRIxGRUB_UINT64_T): Likewise.

Also-By: Robert Millan <rmh.grub@aybabtu.com>
Also-By: Vladimir Serbinenko <phcoder@gmail.com>
13 years ago Implement loading palette on ieee1275_fb.
Vladimir 'phcoder' Serbinenko [Sat, 11 Sep 2010 15:41:56 +0000 (17:41 +0200)]
Implement loading palette on ieee1275_fb.

* grub-core/video/ieee1275.c (stdout_ihandle): New variable.
(have_setcolors): Likewise.
(grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
(grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
(grub_video_ieee1275_set_palette): Implement.

13 years ago * util/grub-install.in (grub_partition): New variable.
Vladimir Serbinenko [Sat, 11 Sep 2010 15:21:48 +0000 (17:21 +0200)]
* util/grub-install.in (grub_partition): New variable.
Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
* util/i386/pc/grub-setup.c (setup): Don't touch prefix.
Fixes a bug reported by Yves Blusseau.

13 years ago Fix emu on mipsel.
Vladimir 'phcoder' Serbinenko [Sat, 11 Sep 2010 14:58:06 +0000 (16:58 +0200)]
Fix emu on mipsel.

* conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
=grub_cpu_flush_cache on all mips and not only yeeloong.
* configure.ac (COND_mips): New conditional.
* grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
platforms.
* grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
* grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
[GRUB_LINKER_HAVE_INIT]: New function.
(grub_emu_post_init): Likewise.
* grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
* grub-core/kern/emu/main.c: Use grub_emu_post_init.
* include/grub/cache.h (_mips): Include mips/cache.h.
* include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
LVM and RAID prototypes.
* include/grub/emu/misc.h (grub_emu_post_init): New proto.
* include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
function.

13 years ago* util/grub-install.in: Don't try to verify core.img until after
Colin Watson [Fri, 10 Sep 2010 22:15:56 +0000 (23:15 +0100)]
* util/grub-install.in: Don't try to verify core.img until after
running grub-mkimage to create it.

13 years ago2010-09-10 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 10 Sep 2010 13:11:54 +0000 (15:11 +0200)]
2010-09-10  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_hurd.in: Add misc readability checks.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.

13 years ago* util/grub-install.in: ${imgext} won't be defined here until the
Colin Watson [Fri, 10 Sep 2010 12:47:16 +0000 (13:47 +0100)]
* util/grub-install.in: ${imgext} won't be defined here until the
install branch is merged.  For the meantime, only verify core.img on
i386-pc and sparc64-ieee1275 platforms.

13 years ago2010-09-10 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 10 Sep 2010 12:32:28 +0000 (14:32 +0200)]
2010-09-10  Robert Millan  <rmh@gnu.org>

Solaris support in grub_find_zpool_from_dir().  Thanks
Seth Goldberg for referring to getextmntent() facility.

* configure.ac: Check for getextmntent(), `sys/mnttab.h' and
`sys/mkdev.h'.
* grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
`<sys/mnttab.h>'.
[HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
[HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
method for finding zpool name.

13 years agogrub-fstest needs the host and hostfs modules while other utilities
Colin Watson [Fri, 10 Sep 2010 12:20:21 +0000 (13:20 +0100)]
grub-fstest needs the host and hostfs modules while other utilities
actively require those modules to be absent, so grub-fstest needs
its own initialisation and finalisation code.
* Makefile.am (grub_fstest.pp): New target.
(grub_fstest_init.lst): Likewise.
(grub_fstest_init.c): Likewise.
* Makefile.util.def (grub-fstest): Add grub_fstest_init.c.

13 years ago2010-09-10 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 10 Sep 2010 12:02:54 +0000 (14:02 +0200)]
2010-09-10  Robert Millan  <rmh@gnu.org>

* configure.ac: Check for `struct statfs.f_fstypename' and
`struct statfs.f_mntfromname'.

* grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
kFreeBSD-specific code.

13 years ago2010-09-10 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 10 Sep 2010 11:35:23 +0000 (13:35 +0200)]
2010-09-10  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
on ZFS.  Now non-main filesystems are supported as / too.

13 years ago* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
Colin Watson [Thu, 9 Sep 2010 16:17:45 +0000 (17:17 +0100)]
* Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
and grub-core/disk/host.c to ...
(grub-fstest): ... here.  Having the host disk implementation
present confuses grub-probe and other utility programs.
* util/grub-mkconfig.in: Only verify readability of grub.cfg.new
when writing to a file, not when writing to stdout.

13 years ago * tests/partmap_test.in: New test for partitions.
bvk.groups@gmail.com [Thu, 9 Sep 2010 15:54:17 +0000 (21:24 +0530)]
* tests/partmap_test.in: New test for partitions.
* Makefile.util.def: Rules for new test.

13 years agoadded new partmaps test
bvk.groups@gmail.com [Thu, 9 Sep 2010 15:40:17 +0000 (21:10 +0530)]
added new partmaps test

13 years ago2010-09-09 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 8 Sep 2010 23:16:05 +0000 (01:16 +0200)]
2010-09-09  Robert Millan  <rmh@gnu.org>

* util/grub-probe.c (probe): Fix a pair of unhandled error
conditions.

13 years ago2010-09-09 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 8 Sep 2010 23:12:10 +0000 (01:12 +0200)]
2010-09-09  Robert Millan  <rmh@gnu.org>

Basic Btrfs support (detection and UUID).

* grub-core/fs/btrfs.c: New file.
* Makefile.util.def (library): Register btrfs.c.
* grub-core/Makefile.core.def: Likewise.

13 years ago2010-09-08 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 8 Sep 2010 21:35:53 +0000 (23:35 +0200)]
2010-09-08  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
with (optional) parameters to specify device and relative path.
* util/grub-install.in: Use is_path_readable_by_grub() to
verify readability of a few critical files.
* util/grub-mkconfig.in: Use is_path_readable_by_grub() to
verify readability of grub.cfg.new.

13 years agoAdd forgotten commit part
Vladimir 'phcoder' Serbinenko [Wed, 8 Sep 2010 19:01:20 +0000 (21:01 +0200)]
Add forgotten commit part

13 years ago Split minix.mod into minix.mod and minix2.mod.
Vladimir 'phcoder' Serbinenko [Wed, 8 Sep 2010 17:13:48 +0000 (19:13 +0200)]
Split minix.mod into minix.mod and minix2.mod.

* Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
* grub-core/Makefile.core.def (minix2): New module.
* grub-core/fs/minix.c: Use definitions instead of runtime version
checking.
* grub-core/fs/minix2.c: New file.

13 years agoMissing part of r2705
Vladimir 'phcoder' Serbinenko [Wed, 8 Sep 2010 17:09:07 +0000 (19:09 +0200)]
Missing part of r2705

13 years ago Add new --boot-directory option to replace --root-directory
Yves Blusseau [Wed, 8 Sep 2010 15:25:29 +0000 (17:25 +0200)]
Add new --boot-directory option to replace --root-directory

* util/grub-install.in: Add new --boot-directory option
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.

13 years ago * util/grub-mkconfig.in: Use new variable.
Yves Blusseau [Wed, 8 Sep 2010 15:21:32 +0000 (17:21 +0200)]
* util/grub-mkconfig.in: Use new variable.

13 years ago* configure.ac: Define some useful variables.
Yves Blusseau [Wed, 8 Sep 2010 15:19:27 +0000 (17:19 +0200)]
* configure.ac: Define some useful variables.

13 years ago * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
Vladimir 'phcoder' Serbinenko [Wed, 8 Sep 2010 14:15:57 +0000 (16:15 +0200)]
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
Use terminfo and don't use cursor-on/cursor-off unless it's known
to work.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.

13 years ago* grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
Colin Watson [Wed, 8 Sep 2010 12:53:47 +0000 (13:53 +0100)]
* grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
starts with "(,", fill the drive containing the loaded image in
between those two characters, but expect that a full partition
specification including partition map names will follow.

13 years ago2010-09-08 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 8 Sep 2010 12:37:19 +0000 (14:37 +0200)]
2010-09-08  Robert Millan  <rmh@gnu.org>

* configure.ac: Remove `--enable-grub-fstest' option.
* Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.

* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
`grub-fstest' instead of `grub-probe' for readability verification.
* util/grub-probe.c (probe): Remove readability verification kludge.

13 years ago2010-09-08 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 8 Sep 2010 12:29:32 +0000 (14:29 +0200)]
2010-09-08  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
initializing `GRUB_FS'.

13 years agoRemove conf/*.mk
Robert Millan [Wed, 8 Sep 2010 11:13:15 +0000 (13:13 +0200)]
Remove conf/*.mk

13 years ago Not command (!) support to GRUB script.
bvk.groups@gmail.com [Wed, 8 Sep 2010 03:51:02 +0000 (09:21 +0530)]
Not command (!) support to GRUB script.

* tests/grub_script_not.in: New test.
* Makefile.util.def: Rules for new test.

* grub-core/script/execute.c (grub_script_execute_cmdline): Handle
! command as a special case.
* grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.

13 years agoupdate grub_errno as per the return value
bvk.groups@gmail.com [Tue, 7 Sep 2010 16:16:04 +0000 (21:46 +0530)]
update grub_errno as per the return value

13 years agomerge with mainline
bvk.groups@gmail.com [Tue, 7 Sep 2010 16:15:34 +0000 (21:45 +0530)]
merge with mainline

13 years ago * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
bvk.groups@gmail.com [Tue, 7 Sep 2010 11:46:03 +0000 (17:16 +0530)]
* grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
grub_free.

13 years ago * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
bvk.groups@gmail.com [Tue, 7 Sep 2010 05:30:37 +0000 (11:00 +0530)]
* docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.

13 years ago * docs/grub.texi (Shell-like scripting): Documentation for break,
bvk.groups@gmail.com [Tue, 7 Sep 2010 04:09:14 +0000 (09:39 +0530)]
* docs/grub.texi (Shell-like scripting): Documentation for break,
continue, shift and return commands.

13 years agomerge with mainline
bvk.groups@gmail.com [Tue, 7 Sep 2010 04:05:57 +0000 (09:35 +0530)]
merge with mainline

13 years agodocumentation for some grub-script features
bvk.groups@gmail.com [Tue, 7 Sep 2010 04:03:29 +0000 (09:33 +0530)]
documentation for some grub-script features

13 years ago Rename CD-ROM to cd on BIOS.
Vladimir 'phcoder' Serbinenko [Mon, 6 Sep 2010 07:35:35 +0000 (09:35 +0200)]
Rename CD-ROM to cd on BIOS.

* grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
"cd".
(grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.

13 years ago * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 21:24:57 +0000 (23:24 +0200)]
* grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
* util/grub-probe.c (main): Likewise.
* util/i386/pc/grub-setup.c (main): Likewise.
* util/sparc64/ieee1275/grub-setup.c (main): Likewise.
Reported and debugged by: alexxy

13 years ago * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 21:20:13 +0000 (23:20 +0200)]
* grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
diagnostic info.

13 years ago * util/grub.d/30_os-prober.in: Add missing classes.
Jo Shields [Sun, 5 Sep 2010 20:43:43 +0000 (22:43 +0200)]
* util/grub.d/30_os-prober.in: Add missing classes.

13 years ago * docs/grub.texi (Theme file format): Document new position format.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 18:33:03 +0000 (20:33 +0200)]
* docs/grub.texi (Theme file format): Document new position format.

13 years ago * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 18:17:34 +0000 (20:17 +0200)]
* docs/grub.texi (Theme file format): Replace Box_slice_names.png with
a table. Use @code instead of @verbatim.

13 years ago Gfxmenu documentation.
Colin D Bennett [Sun, 5 Sep 2010 18:04:10 +0000 (20:04 +0200)]
Gfxmenu documentation.

* docs/grub.texi (Theme file format): New chapter.

13 years ago * grub-core/Makefile.core.def (xzio): New module.
Szymon Janc [Sun, 5 Sep 2010 15:12:13 +0000 (17:12 +0200)]
* grub-core/Makefile.core.def (xzio): New module.
* grub-core/io/xzio.c: New file.
* grub-core/lib/xzembed/xz.h: New file (from xembed).
* grub-core/lib/xzembed/xz_config.h: Likewise.
* grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
* grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
* grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
* grub-core/lib/xzembed/xz_lzma2.h: Likewise.
* grub-core/lib/xzembed/xz_private.h: Likewise.
* grub-core/lib/xzembed/xz_stream.h: Likewise.
* include/grub/file.h (grub_file_filter_id): New compression filter
GRUB_FILE_FILTER_XZIO.

13 years ago * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 15:01:16 +0000 (17:01 +0200)]
* include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
* grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
size.

13 years ago * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 14:55:49 +0000 (16:55 +0200)]
* include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.

13 years ago Uncompressed checksum support.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 14:48:54 +0000 (16:48 +0200)]
Uncompressed checksum support.

* grub-core/commands/hashsum.c (options): Add option --uncompress.
(check_list): New parameter uncompress.
(grub_cmd_hashsum): Handle --uncompress.

13 years agoAdd missing ChangeLog entry
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 14:43:31 +0000 (16:43 +0200)]
Add missing ChangeLog entry

13 years ago Reintroduce testload.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 14:40:41 +0000 (16:40 +0200)]
Reintroduce testload.

* grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
from here ...
* grub-core/commands/testload.c (grub_cmd_testload): ... here.
(GRUB_MOD_INIT): New function.
(GRUB_MOD_FINI): Likewise.
* grub-core/Makefile.core.def (testload): New module.

13 years ago * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
Szymon Janc [Sun, 5 Sep 2010 12:24:39 +0000 (14:24 +0200)]
* grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
(uint8_t): New type.
(uint16_t): Likewise.
(uint32_t): Likewise.
(uint64_t): Likewise.

13 years ago * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
Szymon Janc [Sun, 5 Sep 2010 12:18:31 +0000 (14:18 +0200)]
* include/grub/crypto.h (GRUB_MD_CRC32): New definition.

13 years ago * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
Vladimir 'phcoder' Serbinenko [Sun, 5 Sep 2010 11:05:36 +0000 (13:05 +0200)]
* grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
Made static.
(grub_gzfile_open): Removed. All users updated.
(GRUB_MOD_INIT): New function.
(GRUB_MOD_FINI): Likewise.
* grub-core/kern/file.c (grub_file_filters_all): New variable.
(grub_file_filters_enabled): Likewise.
(grub_file_open): Handle filters.
* grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
* grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
* include/grub/file.h (grub_file_filter_id_t): New type.
(grub_file_filter_t): Likewise.
(grub_file_filters_all): New extern variable.
(grub_file_filters_enabled): Likewise.
(grub_file_filter_register): New inline function.
(grub_file_filter_unregister): Likewise.
(grub_file_filter_disable): Likewise.
(grub_file_filter_disable_compression): Likewise.
* include/grub/gzio.h: Removed.

13 years agonot command (!) support
BVK Chaitanya [Sun, 5 Sep 2010 09:27:28 +0000 (14:57 +0530)]
not command (!) support

13 years ago Filename expansion support for wildcards in GRUB script.
BVK Chaitanya [Sat, 4 Sep 2010 17:15:34 +0000 (22:45 +0530)]
Filename expansion support for wildcards in GRUB script.

* tests/grub_script_expansion.in: New test.
* Makefile.util.def: Rule for new test.

* grub-core/commands/wildcard.c: New file, implements filename
expansion support for GRUB script.
* grub-core/Makefile.core.def: Rule update for regexp.mod.
* grub-core/script/argv.c: Cosmetic changes.
* grub-core/script/execute.c (grub_script_arglist_to_argv):
Refactored to perform wildcard expansion on arguments.
* include/grub/script_sh.h (grub_script_wildcard_translator): New
struct.

* tests/util/grub-shell.in: Fix quoting for read input.

13 years agomerge with mainline
BVK Chaitanya [Sat, 4 Sep 2010 17:04:32 +0000 (22:34 +0530)]
merge with mainline

13 years ago Support for updating environment variables with matched substrings
BVK Chaitanya [Sat, 4 Sep 2010 16:49:58 +0000 (22:19 +0530)]
Support for updating environment variables with matched substrings
of regexp.

* tests/grub_cmd_regexp.in: New test.
* Makefile.util.def: Rule for new test.

* grub-core/commands/regexp.c: New option -s to update environment
variables with regexp matches.

13 years agomerge with mainline
BVK Chaitanya [Sat, 4 Sep 2010 16:43:45 +0000 (22:13 +0530)]
merge with mainline

13 years ago * include/grub/file.h (grub_file): New member not_easly_seekable.
Szymon Janc [Sat, 4 Sep 2010 16:28:42 +0000 (18:28 +0200)]
* include/grub/file.h (grub_file): New member not_easly_seekable.
(grub_file_seekable): New inline function.
* grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
easily seekable.
(grub_gzio_open): Set not_easly_seekable.
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
* grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.

13 years ago Support for options to appear multiple times on cmdline.
BVK Chaitanya [Sat, 4 Sep 2010 16:13:54 +0000 (21:43 +0530)]
Support for options to appear multiple times on cmdline.

* include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
* grub-core/commands/extcmd.c: Support for repeatable option.
* grub-core/lib/arg.c (grub_arg_list_alloc): New function for
repeatable option support.

Refactor menuentry into a regular command.

* grub-core/commands/menuentry.c: New file, menuentry command
implementation.
* grub-core/Makefile.core.def: Rule update for normal.mod.
* grub-core/normal/main.c: Moved menuentry creation to
grub-core/commands/menuentry.c.
* grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
(grub_menu_execute_entry_real): Removed.
* grub-core/script/execute.c (grub_script_execute_sourcecode): New
function.
(grub_script_execute_menuentry): Removed.
* grub-core/script/parser.y (menuentry): Removed.
* grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
* grub-core/script/yylex.l (menuentry): Removed.
* include/grub/menu.h (grub_menu_init): New prototype.
(grub_menu_fini): New prototype.
* include/grub/normal.h (grub_normal_add_menu_entry): Removed.
* include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
(grub_script_execute_sourcecode): New prototype.

13 years agomerge with mainline
BVK Chaitanya [Sat, 4 Sep 2010 15:32:48 +0000 (21:02 +0530)]
merge with mainline

13 years ago "return" command for GRUB script functions.
BVK Chaitanya [Sat, 4 Sep 2010 15:23:09 +0000 (20:53 +0530)]
"return" command for GRUB script functions.

* tests/grub_script_return.in: New test.
* Makefile.util.def: Rules for new test.

* grub-core/script/execute.c (grub_script_return): New function.
* grub-core/script/main.c: Register/unregister return commaond.
* include/grub/script_sh.h (grub_script_return): New prototype.

13 years agomerge with mainline
BVK Chaitanya [Sat, 4 Sep 2010 15:14:44 +0000 (20:44 +0530)]
merge with mainline

13 years ago "setparams" command to update positional parameters.
BVK Chaitanya [Sat, 4 Sep 2010 14:57:48 +0000 (20:27 +0530)]
"setparams" command to update positional parameters.

* tests/grub_script_setparams.in: New test.
* Makefile.util.def: Rules for new test.

* grub-core/script/argv.c (grub_script_argv_make): New function.
* grub-core/script/execute.c (replace_scope): New function.
(grub_script_setparams): New function.
* grub-core/script/lexer.c: Remove unused variables.
* grub-core/script/main.c: Register/unregister setparams command.
* include/grub/script_sh.h (grub_script_argv_make): New prototype.
(grub_script_setparams): New prototype.