]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years ago* util/grub-mkconfig_lib.in (uses_abstraction): New function.
Colin Watson [Fri, 2 Jul 2010 11:32:05 +0000 (12:32 +0100)]
* util/grub-mkconfig_lib.in (uses_abstraction): New function.
* util/grub.d/10_linux.in: Use it to check for LVM, so that
LVM-on-RAID is handled correctly.

14 years ago* docs/grub.texi (Changes from GRUB Legacy): New section.
Colin Watson [Fri, 2 Jul 2010 11:13:48 +0000 (12:13 +0100)]
* docs/grub.texi (Changes from GRUB Legacy): New section.
(Future): Fix typo.

14 years ago* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
Colin Watson [Fri, 2 Jul 2010 09:50:04 +0000 (10:50 +0100)]
* util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
grub.d/README accidentally ends up executable for one reason or
another.  Ignore it.

14 years ago * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:47:10 +0000 (02:47 +0200)]
* partmap/gpt.c (MAX_SECTOR_LOG): New definition.
(gpt_partition_map_iterate): Support non-512B sectors.

14 years ago * kern/efi/init.c (grub_efi_init): Disable watchdog.
Vladimir 'phcoder' Serbinenko [Fri, 2 Jul 2010 00:43:09 +0000 (02:43 +0200)]
* kern/efi/init.c (grub_efi_init): Disable watchdog.
Tested by: Seth Goldberg.

14 years ago * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 22:40:37 +0000 (00:40 +0200)]
* loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
Properly align mbi.
Reported by: Seth Goldberg.

14 years ago * util/grub-mkrescue.in: Avoid module duplication.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 21:35:45 +0000 (23:35 +0200)]
* util/grub-mkrescue.in: Avoid module duplication.

14 years ago * util/grub.d/10_linux.in: Don't use UUID for LVM root.
Sean Finney [Thu, 1 Jul 2010 21:24:21 +0000 (23:24 +0200)]
* util/grub.d/10_linux.in: Don't use UUID for LVM root.

14 years ago * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
Sean Finney [Thu, 1 Jul 2010 21:19:11 +0000 (23:19 +0200)]
* disk/lvm.c (grub_lvm_scan_device): Skip snapshots.

2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/lvm.c (grub_lvm_checkvalue): New function.
(grub_lvm_check_flag): Likewise.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
14 years ago2010-07-01 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 1 Jul 2010 08:52:23 +0000 (10:52 +0200)]
2010-07-01  Robert Millan  <rmh@gnu.org>

* kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
Support 'p' as partition separator on kernel of FreeBSD (used
with GPT labels).
(grub_util_biosdisk_get_grub_dev): Likewise.

14 years ago Yeeloong firmware port.
Vladimir 'phcoder' Serbinenko [Thu, 1 Jul 2010 01:16:56 +0000 (03:16 +0200)]
Yeeloong firmware port.

* boot/mips/yeeloong/fwstart.S: New file.
* bus/cs5536.c (gpiodump): New const.
(set_io_space): New function.
(set_iod): Likewise.
(set_p2d): Likewise.
(grub_cs5536_init_geode): Likewise.
* commands/mips/yeeloong/lsspd.c: New file.
* conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
(serial_mod_SOURCES): New variable.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
term/terminfo.c and term/tparm.c.
(pkglib_IMAGES): Add fwstart.img.
(fwstart_img_SOURCES): New variable.
(fwstart_img_CFLAGS): Likewise.
(fwstart_img_ASFLAGS): Likewise.
(fwstart_img_LDFLAGS): Likewise.
(fwstart_img_FORMAT): Likewise.
(pkglib_MODULES): Add lsspd.mod.
(lsspd_mod_SOURCES): New variable.
(lsspd_mod_CFLAGS): Likewise.
(lsspd_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add halt.mod.
(halt_mod_SOURCES): New variable.
(halt_mod_CFLAGS): Likewise.
(halt_mod_LDFLAGS): Likewise.
* conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
(serial_mod_SOURCES): Removed.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* disk/ata.c (check_device): New function.
(grub_ata_device_initialize): Use check_device.
(grub_ata_iterate): Recheck devices.
(grub_ata_open): Likewise.
(grub_atapi_iterate): Likewise.
(grub_atapi_open): Likewise.
* include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
(GRUB_ATA_CH1_PORT1): Likewise.
(GRUB_ATA_CH0_PORT2): Likewise.
(GRUB_ATA_CH1_PORT2): Likewise.
* include/grub/mips/loongson.h: New file.
* include/grub/mips/yeeloong/ec.h: Likewise.
* include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
(GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
(GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
* include/grub/misc.h (grub_halt): Declare as noreturn.
* include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
(UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
(UART_ENABLE_FIFO_TRIGGER1): New definition.
(UART_ENABLE_DTRRTS): Likewise.
(UART_ENABLE_MODEM): Removed.
(UART_ENABLE_OUT2): New const.
* include/grub/term.h (grub_term_register_input_active): New function.
(grub_term_register_output_active): Likewise.
* kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
argument.
* kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
(init_pci): New function.
(grub_machine_init): Execute platform init when firmware. Init serial.
(grub_halt): Implement.
(grub_exit): Likewise.
(grub_reboot): Likewise.
* term/serial.c (serial_hw_init): Update macros.
[GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
* util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
(image_targets): New target mipsel-yeeloong-flash.
(generate_image): Support IMAGE_YEELOONG_FLASH.
* video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
(grub_video_sm712_setup): Init card.
(grub_video_sm712_set_palette): Removed.
* video/sm712_init.c: New file.

14 years ago* Makefile.in (install-local): Temporarily prepend $(builddir) to
Colin Watson [Wed, 30 Jun 2010 12:36:58 +0000 (13:36 +0100)]
* Makefile.in (install-local): Temporarily prepend $(builddir) to
PATH when running help2man and then run it on the unadorned
executable names, rather than passing $(builddir)/* paths to
help2man.  This avoids the build directory ending up in generated
manual pages.

14 years agoMerge mainline into yeeloongfw
Vladimir 'phcoder' Serbinenko [Wed, 30 Jun 2010 00:30:05 +0000 (02:30 +0200)]
Merge mainline into yeeloongfw

14 years ago* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
Colin Watson [Tue, 29 Jun 2010 15:20:49 +0000 (16:20 +0100)]
* util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
to avoid accidents when debugging with 'sh -x'.
* util/grub-mkrescue.in: Likewise.
* util/grub.d/00_header.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.d/10_netbsd.in: Likewise.
* util/grub.d/10_windows.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

14 years ago* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
Colin Watson [Tue, 29 Jun 2010 15:15:46 +0000 (16:15 +0100)]
* commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
last character in the buffer.
Reported by: Vladimir Serbinenko.

14 years ago2010-06-29 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 22:48:53 +0000 (00:48 +0200)]
2010-06-29  Robert Millan  <rmh@gnu.org>

* docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
(Command-line and menu entry commands): Document `badram' command.

14 years ago2010-06-28 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 28 Jun 2010 21:52:03 +0000 (23:52 +0200)]
2010-06-28  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
* util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
command using ${GRUB_BADRAM} as parameter.

14 years ago* docs/grub.texi (Device map): New section.
Colin Watson [Mon, 28 Jun 2010 11:02:39 +0000 (12:02 +0100)]
* docs/grub.texi (Device map): New section.
(Themes): New section (stub).
* Makefile.in (docs/grub.info): The info documentation now builds
without errors.  Make sure it stays that way.

14 years ago Use normal parser for menu entries.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 10:42:50 +0000 (12:42 +0200)]
Use normal parser for menu entries.
Reported by: Thomas Frauendorfer

* include/grub/parser.h (grub_parser_execute): Don't export.
* normal/menu.c (grub_menu_execute_entry_real): New function.
(grub_menu_execute_entry): Use grub_menu_execute_entry_real.

14 years ago* docs/grub.texi (Embedded configuration): New section (replacing
Colin Watson [Mon, 28 Jun 2010 10:32:50 +0000 (11:32 +0100)]
* docs/grub.texi (Embedded configuration): New section (replacing
old "Preset Menu" stub).
(Images): New section.
(configfile): Note that any menu entries defined in `file' are shown
immediately.

14 years ago * mmap/i386/pc/mmap_helper.S: Set CF on return.
Josh Triplett [Mon, 28 Jun 2010 08:17:57 +0000 (10:17 +0200)]
* mmap/i386/pc/mmap_helper.S: Set CF on return.

14 years ago* util/grub-install.in: Add --debug-image= option.
Colin Watson [Mon, 28 Jun 2010 08:06:41 +0000 (09:06 +0100)]
* util/grub-install.in: Add --debug-image= option.

14 years agoChange grub-mkdevicemap to emit /dev/disk/by-id/ names where
Colin Watson [Mon, 28 Jun 2010 07:55:05 +0000 (08:55 +0100)]
Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
possible on Linux.
* util/deviceiter.c (check_device): Rename to ...
(check_device_readable_unique): ... this.  Update all callers.
Maintain and check a list of which devices (by canonicalized name)
have already been seen.
(clear_seen_devices): New function.
(compare_file_names) [__linux__]: New function.
(grub_util_iterate_devices): Clear the list of seen devices on exit
and (just in case) on entry.
(grub_util_iterate_devices) [__linux__]: Iterate over non-partition
devices in /dev/disk/by-id/, in sorted order.  Remove DM-RAID
seen-devices list, superseded by general code in check_device.

14 years ago* commands/cat.c (options): New variable.
Colin Watson [Mon, 28 Jun 2010 07:51:46 +0000 (08:51 +0100)]
* commands/cat.c (options): New variable.
(grub_cmd_cat): Parse options.  If the --dos option is given, print
DOS-style "\r\n" line endings as simple newlines (Debian bug
#586358).
(GRUB_MOD_INIT): Use extcmd.
(GRUB_MOD_FINI): Likewise.
* docs/grub.texi (cat): Document --dos.

14 years ago XEN with Linux grub-mkconfig support.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 00:39:49 +0000 (02:39 +0200)]
XEN with Linux grub-mkconfig support.

* conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
* util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
GRUB_CMDLINE_XEN_DEFAULT.
* util/grub.d/20_linux_xen.in: New file.

14 years ago Initialise VGA video on qemu ourselves.
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 00:33:32 +0000 (02:33 +0200)]
Initialise VGA video on qemu ourselves.

* boot/i386/qemu/boot.S: Don't call 0xc000.
* conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
(kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
(kernel_img_HEADERS): Add pci.h.
* conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
* configure.ac: Force unifont on qemu and yeeloong.
* include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
(grub_vga_palette_write): Use correct register.
* kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
Call grub_qemu_init_cirrus.
* kern/i386/qemu/init.c: New file.
* term/i386/pc/vga_text.c (inc_y): Never read outside the screen.

* commands/videotest.c (grub_cmd_videotest): Handle double buffering.

14 years agoFix detection of dom0 kernels
Vladimir 'phcoder' Serbinenko [Mon, 28 Jun 2010 00:24:08 +0000 (02:24 +0200)]
Fix detection of dom0 kernels

14 years ago* util/grub.d/10_linux.in: Add support for initrd images on Fedora
Pavel Roskin [Sat, 26 Jun 2010 19:31:40 +0000 (20:31 +0100)]
* util/grub.d/10_linux.in: Add support for initrd images on Fedora
13.

14 years ago* docs/grub.texi (Simple configuration): Explain that
Colin Watson [Sat, 26 Jun 2010 09:50:39 +0000 (10:50 +0100)]
* docs/grub.texi (Simple configuration): Explain that
GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
set to `true' to disable their respective recovery entries, not
merely set.

14 years agoMake the `source' command slightly faster.
Colin Watson [Sat, 26 Jun 2010 09:46:54 +0000 (10:46 +0100)]
Make the `source' command slightly faster.
* normal/main.c (grub_normal_execute): Don't re-read list files when
nested.

14 years ago* loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
Colin Watson [Wed, 23 Jun 2010 08:22:03 +0000 (09:22 +0100)]
* loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
field position and mask size to red fields from mode_info, not
green.
* loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
Remove redundant tag->common.framebuffer_type assignment.
Reported by: Seth Goldberg.

14 years agoSync up other versions of the Linux loader with Robert Millan's
Colin Watson [Wed, 23 Jun 2010 08:16:39 +0000 (09:16 +0100)]
Sync up other versions of the Linux loader with Robert Millan's
change of 2010-01-09, "Make loader output a bit more user-friendly".
* loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
grub_dprintf().
(grub_cmd_linux): Likewise.
(grub_cmd_initrd): Likewise.
* loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
* loader/i386/pc/linux.c (grub_cmd_linux): Likewise.

14 years ago* kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
Colin Watson [Mon, 21 Jun 2010 16:59:51 +0000 (17:59 +0100)]
* kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
larger than MEMORY_MAP_SIZE.

14 years ago Fix parallel build.
BVK Chaitanya [Mon, 21 Jun 2010 15:04:30 +0000 (20:34 +0530)]
Fix parallel build.

* conf/common.rmk: Add grub_script.tab.h as a grub-script-check
dependency.
* script/parser.y: #include grub_script.tab.h header.

14 years agoAdd ChangeLog
Vladimir 'phcoder' Serbinenko [Mon, 21 Jun 2010 00:23:58 +0000 (02:23 +0200)]
Add ChangeLog

14 years agoMerge mainline into cirrus
Vladimir 'phcoder' Serbinenko [Mon, 21 Jun 2010 00:15:49 +0000 (02:15 +0200)]
Merge mainline into cirrus

14 years agoDon't read outside of VGA screen
Vladimir 'phcoder' Serbinenko [Mon, 21 Jun 2010 00:08:48 +0000 (02:08 +0200)]
Don't read outside of VGA screen

14 years agoHandle double redraw
Vladimir 'phcoder' Serbinenko [Mon, 21 Jun 2010 00:08:19 +0000 (02:08 +0200)]
Handle double redraw

14 years agoFix grub_vga_palette_write
Vladimir 'phcoder' Serbinenko [Mon, 21 Jun 2010 00:07:45 +0000 (02:07 +0200)]
Fix grub_vga_palette_write

14 years agoInit cirrus ourselves instead of calling videobios
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 23:02:48 +0000 (01:02 +0200)]
Init cirrus ourselves instead of calling videobios

14 years agoAdd GRUB_PCI_REG_STATUS_*_ENABLE
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 23:01:26 +0000 (01:01 +0200)]
Add GRUB_PCI_REG_STATUS_*_ENABLE

14 years agoImprove macroification of VGA registers.
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 22:58:43 +0000 (00:58 +0200)]
Improve macroification of VGA registers.

14 years ago Support >3GiB and <16MiB RAM in i386-qemu.
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 12:22:34 +0000 (14:22 +0200)]
Support >3GiB and <16MiB RAM in i386-qemu.

* kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
(QEMU_CMOS_MEMSIZE2_LOW): Likewise.
(grub_lower_mem): Removed.
(grub_upper_mem): Likewise.
(mem_size): Made static.
(above_4g): New variable.
(grub_machine_mmap_init): Detect small mem_size and above_4g.
(grub_machine_mmap_iterate): Order in ascending order and add above_4g
support.

14 years agoSupport >3GiB and < 16MiB of RAM in i386-qemu
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 12:17:56 +0000 (14:17 +0200)]
Support >3GiB and < 16MiB of RAM in i386-qemu

14 years ago Cirrus 5446 and Bochs video cards support.
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 12:15:20 +0000 (14:15 +0200)]
Cirrus 5446 and Bochs video cards support.

* conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
video_bochs.mod
(video_cirrus_mod_SOURCES): New variable.
(video_cirrus_mod_CFLAGS): Likewise.
(video_cirrus_mod_LDFLAGS): Likewise.
(video_bochs_mod_SOURCES): Likewise.
(video_bochs_mod_CFLAGS): Likewise.
(video_bochs_mod_LDFLAGS): Likewise.
* include/grub/vga.h: New file.
* include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
(grub_video_fb_set_page_t): New type.
(grub_video_fb_setup): New prototype.
(grub_video_fb_swap_buffers): Likewise.
(grub_video_fb_get_info_and_fini): Likewise.
* term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
(CRTC_DATA_PORT): Likewise.
(CRTC_CURSOR): Likewise.
(CRTC_CURSOR_ADDR_HIGH): Likewise.
(CRTC_CURSOR_ADDR_LOW): Likewise.
(CRTC_CURSOR_DISABLE): Likewise.
(update_cursor): Use grub_vga_cr_write.
(grub_vga_text_setcursor): Likewise.
* video/bochs.c: New file.
* video/fb/video_fb.c (render_target): Moved into framebuffer variable.
(palette): Likewise.
(palette_size): Likewise.
(framebuffer): New variable.
(grub_video_fb_init): Use 'framebuffer'.
(grub_video_fb_fini): Likewise.
(grub_video_fb_get_info): Likewise.
(grub_video_fb_get_palette): Likewise.
(grub_video_fb_set_palette): Likewise.
(grub_video_fb_set_viewport): Likewise.
(grub_video_fb_get_viewport): Likewise.
(grub_video_fb_map_color): Likewise.
(grub_video_fb_map_rgb): Likewise.
(grub_video_fb_map_rgba): Likewise.
(grub_video_fb_unmap_color): Likewise.
(grub_video_fb_unmap_color_int): Likewise.
(grub_video_fb_fill_rect): Likewise.
(grub_video_fb_blit_bitmap): Likewise.
(grub_video_fb_blit_render_target): Likewise.
(grub_video_fb_scroll): Likewise.
(grub_video_fb_create_render_target): Likewise.
(grub_video_fb_doublebuf_blit_init): Likewise.
(grub_video_fb_set_active_render_target): Handle doublebuffering.
(doublebuf_pageflipping_update_screen): New function.
(doublebuf_pageflipping_init): Likewise.
(grub_video_fb_setup): Likewise.
(grub_video_fb_swap_buffers): Likewise.
(grub_video_fb_get_info_and_fini): Likewise.
* video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
All users updated.
(doublebuf_pageflipping_commit): Restructured into ...
(doublebuf_pageflipping_set_page): ... this.
(doublebuf_pageflipping_update_screen): Removed.
(doublebuf_pageflipping_init): Likewise.
(double_buffering_init): Likewise.
(grub_video_vbe_setup): Use grub_video_fb_setup.
(grub_video_vbe_swap_buffers): Removed.
(grub_video_vbe_set_active_render_target): Likewise.
(grub_video_vbe_get_active_render_target): Likewise.
(grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
(grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
grub_video_fb_set_active_render_target and
grub_video_fb_get_active_render_target.
* video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
(SEQUENCER_DATA_PORT): Likewise.
(MAP_MASK_REGISTER): Likewise.
(CRTC_ADDR_PORT): Likewise.
(CRTC_DATA_PORT): Likewise.
(START_ADDR_HIGH_REGISTER): Likewise.
(START_ADDR_LOW_REGISTER): Likewise.
(GRAPHICS_ADDR_PORT): Likewise.
(GRAPHICS_DATA_PORT): Likewise.
(READ_MAP_REGISTER): Likewise.
(INPUT_STATUS1_REGISTER): Likewise.
(INPUT_STATUS1_VERTR_BIT): Likewise.
(get_map_mask): Use grub_vga_sr_read.
(set_map_mask): Use grub_vga_sr_write.
(set_read_map): Use grub_vga_gr_write.
(set_start_address): Use grub_vga_cr_write.
* video/sm712.c (framebuffer): Remove leftover fields.

14 years agoRemove leftover fields in sm712.c
Vladimir 'phcoder' Serbinenko [Sun, 20 Jun 2010 11:44:31 +0000 (13:44 +0200)]
Remove leftover fields in sm712.c

14 years ago * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
Colin Watson [Sun, 20 Jun 2010 11:37:18 +0000 (13:37 +0200)]
* util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX.  Stop
setting GRUB_VIDEO_BACKEND.  Make it available as a user override
instead.  Replace the gfxterm backend check with a check that
${GRUB_PREFIX}/video.lst is non-empty.
* util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
again.
(load_video): New generated function.  Call it before loading
gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
* util/grub.d/10_linux.in (linux_entry): Call load_video.
* util/grub.d/30_os-prober.in (osx_entry): Likewise.
* docs/grub.texi (Simple configuration): Document
GRUB_VIDEO_BACKEND.

Use video functions in linux and xnu loaders.

* conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
* conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
* include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
* loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
loader/i386/pc/linux.c.
(grub_linux_boot): Resynced with loader/i386/pc/linux.c.
(find_line_len): Removed.
(find_framebuf): Likewise.
(grub_cmd_linux): Declare grub_linux_boot as possibly returning.
* loader/i386/efi/xnu.c: Removed.
* loader/i386/pc/xnu.c: Moved from here...
* loader/i386/xnu.c: ...here.

Enable priorities in video drivers.

* include/grub/video.h (grub_video_adapter_prio_t): New type.
(grub_video_adapter): New field prio.
(grub_video_register): Respect prio when inserting.
* video/efi_gop.c (grub_video_gop_adapter): Add prio.
* video/efi_uga.c (grub_video_uga_adapter): Likewise.
* video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
* video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
* video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
* video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
* video/sm712.c (grub_video_sm712_adapter): Likewise.

Fix SDL driver ID.

* include/grub/video.h (grub_video_driver_id_t): New value
GRUB_VIDEO_DRIVER_SDL.
* video/emu/sdl.c (grub_video_sdl_adapter): Add id.

Also-By: Vladimir Serbinenko <phcoder@gmail.com>
14 years ago* util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
Colin Watson [Thu, 17 Jun 2010 20:54:04 +0000 (21:54 +0100)]
* util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
argument to printf.
* util/sparc64/ieee1275/grub-setup.c (usage): Likewise.

14 years ago* util/i386/pc/grub-setup.c (usage): Fix syntax error.
Colin Watson [Thu, 17 Jun 2010 20:49:50 +0000 (21:49 +0100)]
* util/i386/pc/grub-setup.c (usage): Fix syntax error.
* util/sparc64/ieee1275/grub-setup.c (usage): Likewise.

14 years ago* util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
Colin Watson [Thu, 17 Jun 2010 20:20:43 +0000 (21:20 +0100)]
* util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
directly, and recommend grub-install instead.
* util/sparc64/ieee1275/grub-setup.c (usage): Likewise.

14 years agoremove temporary debugging printfs
Colin Watson [Thu, 17 Jun 2010 15:18:41 +0000 (16:18 +0100)]
remove temporary debugging printfs

14 years agomerge mainline
Colin Watson [Thu, 17 Jun 2010 15:14:08 +0000 (16:14 +0100)]
merge mainline

14 years ago* util/grub-mkconfig.in: Stop setting GRUB_VIDEO_BACKEND. Make it
Colin Watson [Thu, 17 Jun 2010 15:01:17 +0000 (16:01 +0100)]
* util/grub-mkconfig.in: Stop setting GRUB_VIDEO_BACKEND.  Make it
available as a user override instead.  Replace the gfxterm backend
check with a check that ${GRUB_PREFIX}/video.lst is non-empty.
* util/grub.d/00_header.in (load_video): New generated function.
Call it before loading gfxterm rather than loading
${GRUB_VIDEO_BACKEND}.
* util/grub.d/10_linux.in (linux_entry): Call load_video.
* util/grub.d/30_os-prober.in (osx_entry): Likewise.
* docs/grub.texi (Simple configuration): Document
GRUB_VIDEO_BACKEND.

14 years agoFix i386-pc prefix handling with nested partitions (Debian bug
Colin Watson [Thu, 17 Jun 2010 11:15:37 +0000 (12:15 +0100)]
Fix i386-pc prefix handling with nested partitions (Debian bug
#585068).  Note that the case where the core image is booted using
multiboot and relocated from its original location still requires
more work.
* kern/i386/pc/init.c (make_install_device): If the prefix starts
with "(,", fill the boot drive in between those two characters, but
expect that a full partition specification including partition map
names will follow.
* util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
specified, write a prefix without the drive name but including a
full partition specification.

14 years ago* util/grub-mkconfig.in: Ignore non-option arguments, for
Colin Watson [Wed, 16 Jun 2010 11:51:26 +0000 (12:51 +0100)]
* util/grub-mkconfig.in: Ignore non-option arguments, for
compatibility with older versions (before 2010-06-12) which did the
same.  In particular, this makes it easier to ship an update-grub
wrapper which is compatible with that used with GRUB Legacy (Debian
bug #586056).

14 years agoFix help2man failure with program name transformation.
Grégoire Sutre [Mon, 14 Jun 2010 19:26:48 +0000 (21:26 +0200)]
Fix help2man failure with program name transformation.

14 years agoRemove leftover commands/handler.c in POTFILES.
Grégoire Sutre [Mon, 14 Jun 2010 18:27:25 +0000 (20:27 +0200)]
Remove leftover commands/handler.c in POTFILES.

14 years ago* util/grub-mkconfig.in: Remove vestige of old argument parsing that
Colin Watson [Mon, 14 Jun 2010 14:34:47 +0000 (15:34 +0100)]
* util/grub-mkconfig.in: Remove vestige of old argument parsing that
left this script non-functional.

14 years ago* docs/man/grub-emu.h2m: New file.
Colin Watson [Mon, 14 Jun 2010 14:08:02 +0000 (15:08 +0100)]
* docs/man/grub-emu.h2m: New file.

14 years ago* docs/grub.texi (Commands): Document reduced command set in rescue
Colin Watson [Sun, 13 Jun 2010 12:17:23 +0000 (13:17 +0100)]
* docs/grub.texi (Commands): Document reduced command set in rescue
mode.
(cpuid): New section.

14 years agoNew partition naming style in grub-probe for Linux and NetBSD.
Grégoire Sutre [Sun, 13 Jun 2010 00:36:39 +0000 (02:36 +0200)]
New partition naming style in grub-probe for Linux and NetBSD.

14 years agoAdd priorities support
Vladimir 'phcoder' Serbinenko [Sat, 12 Jun 2010 15:38:48 +0000 (17:38 +0200)]
Add priorities support

14 years ago Add "-o grub.iso" like cmdline options support.
BVK Chaitanya [Sat, 12 Jun 2010 15:00:38 +0000 (20:30 +0530)]
Add "-o grub.iso" like cmdline options support.

* util/grub-install.in: Improve cmdline option parsing.
* util/grub-mkconfig.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/i386/efi/grub-install.in: Likewise.
* util/ieee1275/grub-install.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.

14 years agomerge with mainline
BVK Chaitanya [Sat, 12 Jun 2010 14:55:26 +0000 (20:25 +0530)]
merge with mainline

14 years ago* .bzrignore: Ignore 41_custom.
Colin Watson [Sat, 12 Jun 2010 14:09:38 +0000 (15:09 +0100)]
* .bzrignore: Ignore 41_custom.

14 years ago* util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX.
Colin Watson [Sat, 12 Jun 2010 14:06:53 +0000 (15:06 +0100)]
* util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX.
* util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
again.
* util/grub.d/10_linux.in (linux_entry): Load all video drivers,
which may be needed to allow the loader to program modes for the
kernel.

14 years ago * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
Thomas Schmitt [Sat, 12 Jun 2010 14:03:34 +0000 (16:03 +0200)]
* util/grub-mkrescue.in: Pass unrecognized options to xorriso.

14 years agomerge mainline
Colin Watson [Sat, 12 Jun 2010 14:01:46 +0000 (15:01 +0100)]
merge mainline

14 years agoAvoid false positives in fs.lst, partmap.lst, and video.lst due to
Colin Watson [Sat, 12 Jun 2010 13:33:09 +0000 (14:33 +0100)]
Avoid false positives in fs.lst, partmap.lst, and video.lst due to
prototype declarations.
* genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
generating fs, partmap, and video lists.
* include/grub/fs.h (grub_fs_register): Omit prototype if
GRUB_LST_GENERATOR is defined.
* include/grub/partition.h (grub_partition_map_register): Likewise.
* include/grub/video.h (grub_video_register): Likewise.

14 years ago * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
Javier Martín [Sat, 12 Jun 2010 12:50:07 +0000 (14:50 +0200)]
* include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.

14 years ago * util/grub-mkrescue.in: Support --xorriso argument.
Thomas Schmitt [Sat, 12 Jun 2010 11:54:35 +0000 (13:54 +0200)]
* util/grub-mkrescue.in: Support --xorriso argument.

14 years ago * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jun 2010 11:47:08 +0000 (13:47 +0200)]
* util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
Suggested by: Thomas Schmitt.

14 years ago * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jun 2010 11:44:01 +0000 (13:44 +0200)]
* util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
Suggested by: Thomas Schmitt.

14 years ago custom.cfg support.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jun 2010 11:20:21 +0000 (13:20 +0200)]
custom.cfg support.

* conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
* util/grub.d/41_custom.in: New file.

14 years agomerge mainline
Colin Watson [Sat, 12 Jun 2010 11:17:28 +0000 (12:17 +0100)]
merge mainline

14 years ago* util/grub-mkrescue.in (make_image): Remove sh module, which has
Colin Watson [Sat, 12 Jun 2010 11:02:38 +0000 (12:02 +0100)]
* util/grub-mkrescue.in (make_image): Remove sh module, which has
been merged back into normal.

14 years agomerge with mainline
BVK Chaitanya [Sat, 12 Jun 2010 10:51:10 +0000 (16:21 +0530)]
merge with mainline

14 years agomerge mainline up to r2075 (videomask merge)
Colin Watson [Sat, 12 Jun 2010 10:30:11 +0000 (11:30 +0100)]
merge mainline up to r2075 (videomask merge)

14 years ago* include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
Colin Watson [Fri, 11 Jun 2010 21:15:35 +0000 (22:15 +0100)]
* include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
(GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).

14 years ago* Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
Colin Watson [Fri, 11 Jun 2010 21:12:16 +0000 (22:12 +0100)]
* Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
when generating manual pages.
* docs/man/grub-bin2h.h2m: New file.
* docs/man/grub-editenv.h2m: New file.
* docs/man/grub-fstest.h2m: New file.
* docs/man/grub-install.h2m: New file.
* docs/man/grub-macho2img.h2m: New file.
* docs/man/grub-mkconfig.h2m: New file.
* docs/man/grub-mkdevicemap.h2m: New file.
* docs/man/grub-mkfont.h2m: New file.
* docs/man/grub-mkimage.h2m: New file.
* docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
* docs/man/grub-mkrelpath.h2m: New file.
* docs/man/grub-mkrescue.h2m: New file.
* docs/man/grub-ofpathname.h2m: New file.
* docs/man/grub-pe2elf.h2m: New file.
* docs/man/grub-probe.h2m: New file.
* docs/man/grub-reboot.h2m: New file.
* docs/man/grub-script-check.h2m: New file.
* docs/man/grub-set-default.h2m: New file.
* docs/man/grub-setup.h2m: New file.

14 years ago Use FOR_* macros instead of *_iterate whenever possible.
Vladimir 'phcoder' Serbinenko [Fri, 11 Jun 2010 20:31:16 +0000 (22:31 +0200)]
Use FOR_* macros instead of *_iterate whenever possible.

* commands/handler.c: Removed.
* commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
* commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
* conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
(grub_probe_SOURCES): Remove kern/parser.c.
(util/grub-script-check.c_DEPENDENCIES): Removed.
(grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
and grub_script_check_init.c.
(grub_script_check_init.lst): Removed.
(grub_script_check_init.h): Likewise.
(grub_script_check_init.c): Likewise.
(pkglib_MODULES): Remove handler.mod and sh.mod.
(handler_mod_SOURCES): Removed.
(handler_mod_CFLAGS): Likewise.
(handler_mod_LDFLAGS): Likewise.
(normal_mod_SOURCES): Remove normal/handler.c.
Add script/main.c, script/script.c, script/execute.c,
script/function.c, script/lexer.c, grub_script.tab.c
and grub_script.yy.c.
* conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
(grub_setup_SOURCES): Remove kern/parser.c.
* conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
(grub_setup_SOURCES): Remove kern/parser.c.
* conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
* gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
* include/grub/command.h (grub_command_iterate): Removed.
(FOR_COMMANDS): New macro.
* include/grub/dl.h (grub_dl): New member next.
(grub_dl_iterate): Removed.
(grub_dl_head): New variable declaration.
(FOR_DL_MODULES): New macro.
* include/grub/fs.h: Include list.h.
(grub_fs): Make next first element.
(grub_fs_list): New variable declaration.
(grub_fs_register): Make inline.
(grub_fs_unregister): Likewise.
(grub_fs_iterate): Removed.
(FOR_FILESYSTEMS): New macro.
* include/grub/handler.h: Removed.
* include/grub/list.h (grub_list_hook_t): Removed.
(grub_list_test_t): Likewise.
(grub_list_pop): Likewise.
(grub_list_iterate): Likewise.
(grub_list_insert): Likewise.
(FOR_LIST_ELEMENTS): New macro.
* include/grub/parser.h (grub_parser_class): Removed.
(grub_parser_register): Likewise.
(grub_parser_unregister): Likewise.
(grub_parser_get_current): Likewise.
(grub_parser_set_current): Likewise.
(grub_register_rescue_parser): Likewise.
(grub_rescue_parse_line): New function.
* include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
* include/grub/script_sh.h (grub_script_function_list): New variable
declaration.
(FOR_SCRIPT_FUNCTIONS): New macro.
(grub_script_function_iterate): Removed.
(grub_normal_parse_line): New prototype.
* include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
(FOR_DISABLED_TERM_INPUTS): Likewise.
(FOR_ACTIVE_TERM_OUTPUTS): Likewise.
(FOR_DISABLED_TERM_OUTPUTS): Likewise.
* include/grub/video.h (grub_video_adapter): Move 'next' to first
element.
(grub_video_register): Inline.
(grub_video_unregister): Likewise.
(grub_video_adapter_list): New variable declaration.
(grub_video_iterate): Removed.
(FOR_VIDEO_ADAPTERS): New macro.
* kern/dl.c (grub_dl_list): Removed. All users updated.
(grub_dl_iterate): Removed.
* kern/fs.c (grub_fs_list): Make global.
(grub_fs_register): Removed.
(grub_fs_unregister): Likewise.
(grub_fs_iterate): Likewise.
* kern/handler.c: Removed.
* kern/list.c (grub_list_pop): Removed.
(grub_list_iterate): Likewise.
(grub_list_insert): Likewise.
(grub_named_list_find): Use FOR_LIST_ELEMENTS.
(grub_prio_list_insert): Don't use grub_list_insert.
* kern/main.c (grub_register_rescue_parser): Don't call
grub_register_rescue_parser.
* kern/parser.c (grub_parser_class): Removed.
(grub_parser_execute): Use grub_rescue_parse_line.
* kern/rescue_parser.c (grub_rescue_parse_line): Make global.
(grub_rescue_parser): Removed.
(grub_register_rescue_parser): Likewise.
* kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
* normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
(grub_auth_check_authentication): Likewise.
* normal/completion.c (iterate_command): Removed.
(grub_normal_do_completion): Use FOR_COMMANDS.
* normal/handler.c: Removed.
* normal/main.c (read_config_file): Remove parser changing.
(grub_normal_execute): Don't call read_handler_list.
(grub_normal_read_line_real): Statically allocate prompt.
(grub_cmdline_run): Use grub_normal_parse_line.
(GRUB_MOD_FINI): Don't call free_handler_list.
* normal/menu_entry.c (run): Likewise.
* script/function.c (grub_script_function_list): Make global.
(grub_script_function_iterate): Removed.
* script/main.c (grub_normal_parse_line): Make global.
(grub_sh_parser): Removed.
(GRUB_MOD_INIT): Likewise.
(GRUB_MOD_FINI): Likewise.
* tests/lib/functional_test.c (grub_functional_test): Use
FOR_LIST_ELEMENTS.
* tests/lib/test.c (free_failures): Don't use grub_list_pop.
(grub_test_run): Use FOR_LIST_ELEMENTS.
* tests/lib/unit_test.c (main): Likewise.
* util/deviceiter.c (grub_util_iterate_devices): Don't use
grub_list_pop.
* util/grub-fstest.c (grub_term_input_class): Removed.
(grub_term_output_class): Likewise.
* util/grub-probe.c: Likewise.
* util/i386/pc/grub-setup.c: Likewise.
* util/sparc64/ieee1275/grub-setup.c: Likewise.
* util/grub-script-check.c (main): Don't call grub_init_all and
grub_fini_all.
* video/video.c (grub_video_adapter_list): Make global.
(grub_video_register): Removed.
(grub_video_unregister): Likewise.
(grub_video_iterate): Likewise.

14 years ago * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
Vladimir 'phcoder' Serbinenko [Wed, 9 Jun 2010 20:24:12 +0000 (22:24 +0200)]
* docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
reported by Henrique Ferreiro.

14 years ago2010-06-09 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 9 Jun 2010 18:43:25 +0000 (20:43 +0200)]
2010-06-09  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_linux.in: Prefer compressed images over non-compressed
ones, when both are available.

14 years agoMake --version uniform and avoid hard-coded program name.
Grégoire Sutre [Tue, 8 Jun 2010 10:52:42 +0000 (12:52 +0200)]
Make --version uniform and avoid hard-coded program name.

14 years agoUse absolute offsets for start of embedding area.
Grégoire Sutre [Tue, 8 Jun 2010 10:23:30 +0000 (12:23 +0200)]
Use absolute offsets for start of embedding area.

14 years agoAdd . to the directories searched for unifont.
Grégoire Sutre [Tue, 8 Jun 2010 10:09:34 +0000 (12:09 +0200)]
Add . to the directories searched for unifont.

14 years ago* .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
Colin Watson [Tue, 8 Jun 2010 09:37:16 +0000 (10:37 +0100)]
* .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
grub_script.yy.h.

14 years ago* docs/grub.texi (History): Expand to cover GRUB 2.
Colin Watson [Tue, 8 Jun 2010 09:29:25 +0000 (10:29 +0100)]
* docs/grub.texi (History): Expand to cover GRUB 2.
(Serial terminal): Refer to `terminal_input' and `terminal_output'
commands, not `terminal'.
(serial): Likewise.
(terminal_input): New section.
(terminal_output): New section.
(uppermem): New section (stub).
(Obtaining and Building GRUB): Refer to Bazaar, not Subversion.

14 years ago* docs/grub.texi (Security): Menu entries are unrestricted by
Colin Watson [Tue, 8 Jun 2010 09:18:53 +0000 (10:18 +0100)]
* docs/grub.texi (Security): Menu entries are unrestricted by
default, not restricted to superusers as I had previously thought.
Reword to account for this.

14 years ago* kern/emu/misc.c (device_mapper_null_log): New function.
Colin Watson [Mon, 7 Jun 2010 21:41:55 +0000 (22:41 +0100)]
* kern/emu/misc.c (device_mapper_null_log): New function.
(grub_device_mapper_supported): New function.
* include/grub/emu/misc.h (grub_device_mapper_supported): Add
prototype.
* kern/emu/hostdisk.c (find_partition_start): Check whether
device-mapper is supported before trying to use it.
* util/deviceiter.c (grub_util_iterate_devices): Likewise.

14 years ago* docs/grub.texi (Naming convention): Use GRUB 2 syntax.
Colin Watson [Mon, 7 Jun 2010 21:18:00 +0000 (22:18 +0100)]
* docs/grub.texi (Naming convention): Use GRUB 2 syntax.
(File name syntax): Likewise.
(help): --all is no longer supported in GRUB 2.  Be more precise
about pattern matching.

14 years ago* normal/completion.c (grub_normal_do_completion): When completing
Colin Watson [Mon, 7 Jun 2010 21:13:26 +0000 (22:13 +0100)]
* normal/completion.c (grub_normal_do_completion): When completing
arguments to "set" and the current word contains an equals sign,
skip to after the equals sign before starting completion.

14 years ago* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
Colin Watson [Mon, 7 Jun 2010 20:29:25 +0000 (21:29 +0100)]
* fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.

14 years ago* docs/grub.texi (Network): New section.
Colin Watson [Mon, 7 Jun 2010 20:26:30 +0000 (21:26 +0100)]
* docs/grub.texi (Network): New section.
(Device syntax): The network device is called `(pxe)' in GRUB 2, not
`(nd)' as in GRUB Legacy.
(pxe_unload): New section.

14 years ago* docs/grub.texi (Troubleshooting): `echo' is not usually available
Colin Watson [Mon, 7 Jun 2010 20:10:29 +0000 (21:10 +0100)]
* docs/grub.texi (Troubleshooting): `echo' is not usually available
in the rescue shell, so recommend using `set' instead.  Thanks,
Jordan Uggla.

14 years ago* docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
Colin Watson [Mon, 7 Jun 2010 13:32:12 +0000 (14:32 +0100)]
* docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
(password): New section.
(password_pbkdf2): New section.
(search): New section.
(Security): New section.
(Troubleshooting): New section, currently very incomplete.
(Invoking grub-mkpasswd-pbkdf2): New section.
(Internals): New section, currently very incomplete.

14 years ago* util/grub.d/00_header.in: Add some more quoting (of
Colin Watson [Mon, 7 Jun 2010 13:22:40 +0000 (14:22 +0100)]
* util/grub.d/00_header.in: Add some more quoting (of
"${prev_saved_entry}" and "${boot_once}") needed to make savedefault
work again.
Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).

14 years ago* util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
Colin Watson [Mon, 7 Jun 2010 13:15:57 +0000 (14:15 +0100)]
* util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
to `count', fixing variable shadowing that broke the -c option.

14 years ago* util/grub.d/00_header.in: Quote values assigned to `saved_entry',
Colin Watson [Sat, 5 Jun 2010 19:44:44 +0000 (20:44 +0100)]
* util/grub.d/00_header.in: Quote values assigned to `saved_entry',
in case they contain spaces.

14 years ago* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
Colin Watson [Fri, 4 Jun 2010 12:53:30 +0000 (13:53 +0100)]
* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
"part_" to partmap module names, in line with grub-install.
Reported by: Jindřich Makovička (Debian bug #584426).