]> git.proxmox.com Git - grub2.git/log
grub2.git
11 years ago Improve spkmomdem reliability by adding a separator between bytes.
Vladimir 'phcoder' Serbinenko [Mon, 21 Jan 2013 13:55:30 +0000 (14:55 +0100)]
Improve spkmomdem reliability by adding a separator between bytes.

11 years ago* grub-core/partmap/msdos.c (embed_signatures): Add the signature of
Colin Watson [Mon, 21 Jan 2013 11:10:25 +0000 (11:10 +0000)]
* grub-core/partmap/msdos.c (embed_signatures): Add the signature of
an Acer registration utility with several sightings in the wild.
Reported by: Rickard Westman.  Fixes Ubuntu bug #987022.

11 years agoRemove nested functions from filesystem directory iterators.
Colin Watson [Mon, 21 Jan 2013 01:33:46 +0000 (01:33 +0000)]
Remove nested functions from filesystem directory iterators.

* include/grub/fs.h (grub_fs_dir_hook_t): New type.
(struct grub_fs.dir): Add hook_data argument.

Update all implementations and callers.

11 years ago* docs/grub.texi (Multi-boot manual config): Fix typo for
Colin Watson [Mon, 21 Jan 2013 00:05:41 +0000 (00:05 +0000)]
* docs/grub.texi (Multi-boot manual config): Fix typo for
"recommended".

11 years ago* util/grub-mkimage.c (main): Postpone freeing arguments.output
Leif Lindholm [Sun, 20 Jan 2013 23:16:34 +0000 (23:16 +0000)]
* util/grub-mkimage.c (main): Postpone freeing arguments.output
until after its use in generate_image.

11 years ago* grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
Colin Watson [Sun, 20 Jan 2013 23:03:35 +0000 (23:03 +0000)]
* grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
initrd size to addr_min, since the initrd will be allocated after
this address.

11 years ago * conf/Makefile.common: Fix autogen rules to pass definition
Andrey Borzenkov [Sun, 20 Jan 2013 22:44:42 +0000 (23:44 +0100)]
* conf/Makefile.common: Fix autogen rules to pass definition
files on stdin; Makefile.util.am needs Makefile.utilgcry.def

11 years ago * include/grub/elf.h: Update ARM definitions based on binutils.
Leif Lindholm [Sun, 20 Jan 2013 22:01:47 +0000 (23:01 +0100)]
* include/grub/elf.h: Update ARM definitions based on binutils.

11 years ago Split long USB transfers into short ones.
Vladimir 'phcoder' Serbinenko [Sun, 20 Jan 2013 21:45:53 +0000 (22:45 +0100)]
Split long USB transfers into short ones.

11 years ago * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
Andrey Borzenkov [Sun, 20 Jan 2013 21:42:08 +0000 (22:42 +0100)]
* docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
is interrupted by ESC.

11 years ago * util/grub-script-check.c (main): Uniform the error message.
Vladimir 'phcoder' Serbinenko [Sun, 20 Jan 2013 21:05:55 +0000 (22:05 +0100)]
* util/grub-script-check.c (main): Uniform the error message.

11 years agoRemove nested functions from ELF iterators.
Colin Watson [Sun, 20 Jan 2013 15:54:09 +0000 (15:54 +0000)]
Remove nested functions from ELF iterators.

11 years agoRemove nested functions from device iterators.
Colin Watson [Sun, 20 Jan 2013 15:52:15 +0000 (15:52 +0000)]
Remove nested functions from device iterators.

* include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
(grub_arc_iterate_devs): Add hook_data argument.
* include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
(struct grub_ata_dev.iterate): Add hook_data argument.
* include/grub/device.h (grub_device_iterate_hook_t): New type.
(grub_device_iterate): Add hook_data argument.
* include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
(struct grub_disk_dev.iterate): Add hook_data argument.
(grub_disk_dev_iterate): Likewise.
* include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
Likewise.
* include/grub/msdos_partition.h (grub_partition_msdos_iterate):
Likewise.
* include/grub/partition.h (grub_partition_iterate_hook_t): New
type.
(struct grub_partition_map.iterate): Add hook_data argument.
(grub_partition_iterate): Likewise.
* include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
(struct grub_scsi_dev.iterate): Add hook_data argument.

Update all callers.

11 years agoFix typos for "developer" and "development".
Colin Watson [Sun, 20 Jan 2013 13:24:47 +0000 (13:24 +0000)]
Fix typos for "developer" and "development".

11 years ago Add license header to spkmodem-recv.c.
Vladimir 'phcoder' Serbinenko [Fri, 18 Jan 2013 10:54:28 +0000 (11:54 +0100)]
Add license header to spkmodem-recv.c.

11 years ago Rewrite spkmodem to use PIT for timing. Double the speed.
Vladimir 'phcoder' Serbinenko [Thu, 17 Jan 2013 19:06:52 +0000 (20:06 +0100)]
Rewrite spkmodem to use PIT for timing. Double the speed.

11 years ago Add new command pcidump.
Vladimir 'phcoder' Serbinenko [Wed, 16 Jan 2013 19:44:11 +0000 (20:44 +0100)]
Add new command pcidump.

11 years ago New terminal outputs using serial: morse and spkmodem.
Vladimir 'phcoder' Serbinenko [Wed, 16 Jan 2013 19:39:54 +0000 (20:39 +0100)]
New terminal outputs using serial: morse and spkmodem.

11 years ago Improve bidi handling in entry editor.
Vladimir 'phcoder' Serbinenko [Wed, 16 Jan 2013 12:41:16 +0000 (13:41 +0100)]
Improve bidi handling in entry editor.

11 years ago * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
Vladimir 'phcoder' Serbinenko [Wed, 16 Jan 2013 08:06:11 +0000 (09:06 +0100)]
* grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
argument to prevent name collision.

11 years agoRemove nested functions from script reading and parsing.
Colin Watson [Tue, 15 Jan 2013 12:03:25 +0000 (12:03 +0000)]
Remove nested functions from script reading and parsing.

* grub-core/kern/parser.c (grub_parser_split_cmdline): Add
getline_data argument, passed to getline.
* grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
getline_data argument, passed to grub_parser_split_cmdline.
* grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
lexerstate->getline_data to lexerstate->getline.
(grub_script_lexer_init): Add getline_data argument, saved in
lexerstate->getline_data.
* grub-core/script/main.c (grub_normal_parse_line): Add getline_data
argument, passed to grub_script_parse.
* grub-core/script/script.c (grub_script_parse): Add getline_data
argument, passed to grub_script_lexer_init.
* include/grub/parser.h (grub_parser_split_cmdline): Update
prototype.  Update all callers to pass appropriate getline data.
(struct grub_parser.parse_line): Likewise.
(grub_rescue_parse_line): Likewise.
* include/grub/reader.h (grub_reader_getline_t): Add void *
argument.
* include/grub/script_sh.h (struct grub_lexer_param): Add
getline_data member.
(grub_script_parse): Update prototype.  Update all callers to pass
appropriate getline data.
(grub_script_lexer_init): Likewise.
(grub_normal_parse_line): Likewise.

* grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
data argument.
* grub-core/kern/parser.c (grub_parser_execute: getline): Make
static instead of nested.  Rename to ...
(grub_parser_execute_getline): ... this.
* grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
data argument.
* grub-core/normal/main.c (read_config_file: getline): Make static
instead of nested.  Rename to ...
(read_config_file_getline): ... this.
(grub_normal_read_line): Add unused data argument.
* grub-core/script/execute.c (grub_script_execute_sourcecode:
getline): Make static instead of nested.  Rename to ...
(grub_script_execute_sourcecode_getline): ... this.
* util/grub-script-check.c (main: get_config_line): Make static
instead of nested.

11 years agoRemove nested functions from memory map iterators.
Colin Watson [Tue, 15 Jan 2013 12:02:35 +0000 (12:02 +0000)]
Remove nested functions from memory map iterators.

* grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
argument, passed to hook.
* grub-core/kern/i386/coreboot/mmap.c
(grub_linuxbios_table_iterate): Likewise.
(grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
instead of nested.
(grub_machine_mmap_iterate): Add hook_data argument.
* grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
Add hook_data argument, passed to hook.
* grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
Likewise.
* grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
(grub_machine_mmap_iterate): Likewise.
* grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
* include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
prototype.
* include/grub/memory.h (grub_memory_hook_t): Add data argument.
Remove NESTED_FUNC_ATTR from here and from all users.
(grub_mmap_iterate): Update prototype.
(grub_efi_mmap_iterate): Update prototype.  Update all callers to
pass appropriate hook data.
(grub_machine_mmap_iterate): Likewise.

* grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
static instead of nested.
* grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
Rename to ...
(lsmmap_hook): ... this.
* grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
Likewise.
(grub_efiemu_mmap_fill: fill_hook): Likewise.
* grub-core/kern/i386/coreboot/init.c (grub_machine_init:
heap_init): Likewise.
* grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
Rename to ...
(mmap_iterate_hook): ... this.
* grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
Likewise.
* grub-core/lib/ieee1275/relocator.c
(grub_relocator_firmware_get_max_events: count): Likewise.
(grub_relocator_firmware_fill_events: fill): Likewise.  Rename
to ...
(grub_relocator_firmware_fill_events_iter): ... this.
* grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
hook): Likewise.  Rename to ...
(grub_relocator_alloc_chunk_align_iter): ... this.
* grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
Rename to ...
(generate_e820_mmap_iter): ... this.
* grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
Rename to ...
(count_hook): ... this.
(grub_linux_boot: hook): Likewise.  Rename to ...
(grub_linux_boot_mmap_find): ... this.
(grub_linux_boot: hook_fill): Likewise.  Rename to ...
(grub_linux_boot_mmap_fill): ... this.
* grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
hook): Likewise.  Rename to ...
(grub_fill_multiboot_mmap_iter): ... this.
* grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
hook): Likewise.  Rename to ...
(count_hook): ... this.
* grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
hook): Likewise.  Rename to ...
(grub_fill_multiboot_mmap_iter): ... this.
* grub-core/loader/powerpc/ieee1275/linux.c
(grub_linux_claimmap_iterate: alloc_mem): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
Likewise.  Rename to ...
(alloc_phys_choose): ... this.
(determine_phys_base: get_physbase): Likewise.
* grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
find_hook): Likewise.
* grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
(malloc_hook: count_hook): Likewise.
* grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
Likewise.  Rename to ...
(lower_hook): ... this.
(grub_mmap_get_upper: hook): Likewise.  Rename to ...
(upper_hook): ... this.
(grub_mmap_get_post64: hook): Likewise.  Rename to ...
(post64_hook): ... this.
* grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
Likewise.  Rename to ...
(lower_hook): ... this.
(grub_mmap_get_upper: hook): Likewise.  Rename to ...
(upper_hook): ... this.
* grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
(grub_mmap_iterate: fill_hook): Likewise.
(fill_mask): Pass addr and mask within a single struct.
(grub_cmd_badram: hook): Make static instead of nested.  Rename
to ...
(badram_iter): ... this.
(grub_cmd_cutmem: hook): Likewise.  Rename to ...
(cutmem_iter): ... this.

11 years ago * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
Vladimir 'phcoder' Serbinenko [Sun, 13 Jan 2013 21:45:16 +0000 (22:45 +0100)]
* grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
delimit path in strings using quotes.
* util/getroot.c (grub_guess_root_devices): Likewise.
(grub_make_system_path_relative_to_its_root): Likewise.
* util/grub-probe.c (probe): Likewise.
* util/ieee1275/ofpath.c (find_obppath): Likewise.
(xrealpath): Likewise.

11 years ago Fix compilation with older compilers.
Vladimir 'phcoder' Serbinenko [Sun, 13 Jan 2013 20:06:25 +0000 (21:06 +0100)]
Fix compilation with older compilers.

* grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
* grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
declarations.
* grub-core/lib/posix_wrap/string.h: Include sys/types.h.
* grub-core/lib/posix_wrap/sys/types.h: Add common types.
* grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
identifier with b.
* grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
* include/grub/crypto.h: Add type defines.
* util/import_gcrypth.sed: Remove duplicate type defines.

11 years ago New command list_trusted.
Vladimir 'phcoder' Serbinenko [Sun, 13 Jan 2013 16:49:05 +0000 (17:49 +0100)]
New command list_trusted.

* grub-core/commands/verify.c (grub_cmd_list): New function.

11 years ago* util/grub-mkimage.c (generate_image): Fix "size of public key"
Colin Watson [Sun, 13 Jan 2013 01:47:46 +0000 (01:47 +0000)]
* util/grub-mkimage.c (generate_image): Fix "size of public key"
info message.

11 years agoRemove nested functions from PCI iterators.
Colin Watson [Sun, 13 Jan 2013 01:10:41 +0000 (01:10 +0000)]
Remove nested functions from PCI iterators.

* grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
passed to hook.  Update all callers to pass appropriate hook data.
* grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
* include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
Remove NESTED_FUNC_ATTR from here and from all users.
(grub_pci_iterate): Update prototype.
* grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
instead of nested.  Rename to ...
(grub_cs5536_find_iter): ... this.
* grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
* grub-core/kern/mips/loongson/init.c (init_pci: set_card):
Likewise.
* grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
Likewise.
* grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
Likewise.
* grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
Likewise.
* grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
* grub-core/video/radeon_fuloong2e.c
(grub_video_radeon_fuloong2e_setup: find_card): Likewise.
* grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
find_card): Likewise.
* grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
Likewise.

11 years ago * grub-core/commands/verify.c: Mark messages for translating.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jan 2013 15:31:17 +0000 (16:31 +0100)]
* grub-core/commands/verify.c: Mark messages for translating.

11 years ago * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
Vladimir 'phcoder' Serbinenko [Sat, 12 Jan 2013 15:27:37 +0000 (16:27 +0100)]
* grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
fatal.

11 years ago * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
Vladimir 'phcoder' Serbinenko [Sat, 12 Jan 2013 15:21:06 +0000 (16:21 +0100)]
* grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
fatal.

11 years agoRemove autogenerated files from VCS
Vladimir 'phcoder' Serbinenko [Sat, 12 Jan 2013 15:17:31 +0000 (16:17 +0100)]
Remove autogenerated files from VCS

11 years ago * autogen.sh: Do not try to delete nonexistant files.
Vladimir 'phcoder' Serbinenko [Sat, 12 Jan 2013 15:14:09 +0000 (16:14 +0100)]
* autogen.sh: Do not try to delete nonexistant files.
* util/import_gcrypth.sed: Add some missing header removals.

11 years agoClean up dangling references to grub-setup.
Colin Watson [Sat, 12 Jan 2013 13:30:37 +0000 (13:30 +0000)]
Clean up dangling references to grub-setup.
Fixes Ubuntu bug #1082045.

* docs/grub.texi (Images): Refer generally to grub-install rather
than directly to grub-setup.
(Installing GRUB using grub-install): Remove direct reference to
grub-setup.
(Device map) Likewise.
(Invoking grub-install): Likewise.
* docs/man/grub-install.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
* util/grub-install.in (usage): Likewise.

* util/bash-completion.d/grub-completion.bash.in (_grub_setup):
Apply to grub-bios-setup and grub-sparc64-setup rather than to
grub-setup.
* configure.ac: Remove grub_setup output variable.

* docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
to grub-bios-setup.
* docs/man/grub-sparc64-setup.h2m (NAME): Change name from
grub-setup to grub-sparc64-setup.

11 years ago Import gcrypt public-key cryptography and implement signature checking.
Vladimir 'phcoder' Serbinenko [Fri, 11 Jan 2013 20:32:42 +0000 (21:32 +0100)]
Import gcrypt public-key cryptography and implement signature checking.

11 years ago * grub-core/fs/ntfs.c: Ue more appropriate types.
Vladimir 'phcoder' Serbinenko [Fri, 11 Jan 2013 06:41:05 +0000 (07:41 +0100)]
* grub-core/fs/ntfs.c: Ue more appropriate types.
* grub-core/fs/ntfscomp.c: Likewise.
* include/grub/ntfs.h: Likewise.

11 years ago Support Apple FAT binaries on non-Apple platforms.
Vladimir 'phcoder' Serbinenko [Thu, 10 Jan 2013 11:50:01 +0000 (12:50 +0100)]
Support Apple FAT binaries on non-Apple platforms.

* include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
* include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
Likewise.
* grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
Apple FAT binaries.

11 years ago * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
Vladimir 'phcoder' Serbinenko [Thu, 10 Jan 2013 07:09:26 +0000 (08:09 +0100)]
* grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
sector devices.

11 years ago* grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
Colin Watson [Mon, 7 Jan 2013 10:45:05 +0000 (10:45 +0000)]
* grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
explicitly zeroing elements.
* grub-core/io/gzio.c (grub_gzio_open): Likewise.
* grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
of elements in a structure already allocated using grub_zalloc.
* grub-core/io/xzio.c (grub_xzio_open): Likewise.

11 years ago* docs/grub.texi (grub_cpu): New subsection.
Colin Watson [Mon, 7 Jan 2013 10:43:00 +0000 (10:43 +0000)]
* docs/grub.texi (grub_cpu): New subsection.
(grub_platform): Likewise.

11 years ago * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
Vladimir 'phcoder' Serbinenko [Mon, 7 Jan 2013 10:27:18 +0000 (11:27 +0100)]
* grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.

11 years ago * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
Vladimir 'phcoder' Serbinenko [Sat, 5 Jan 2013 17:37:34 +0000 (18:37 +0100)]
* grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
divisions.

11 years ago * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
Vladimir 'phcoder' Serbinenko [Sat, 5 Jan 2013 16:36:04 +0000 (17:36 +0100)]
* grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
* grub-core/fs/ntfscomp.c: Likewise.
* include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
(grub_ntfs_comp): Likewise.

11 years ago * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
Vladimir 'phcoder' Serbinenko [Sat, 5 Jan 2013 15:53:04 +0000 (16:53 +0100)]
* grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
Rename to ...
(grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
of groups_per_block. All users updated.

11 years ago * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
Vladimir 'phcoder' Serbinenko [Sat, 5 Jan 2013 14:10:46 +0000 (15:10 +0100)]
* grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
grub_error properly.
* grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
* grub-core/disk/loopback.c (grub_loopback_write): Likewise.

11 years ago * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
Vladimir 'phcoder' Serbinenko [Thu, 3 Jan 2013 22:19:19 +0000 (23:19 +0100)]
* util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
always in /boot/zfs.
Reported by: Yuta Satoh.

11 years ago * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
Yuta Satoh [Thu, 3 Jan 2013 22:06:07 +0000 (23:06 +0100)]
* util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
${grub_probe}

11 years ago * configure.ac: Extend -Wno-trampolines to host.
Vladimir 'phcoder' Serbinenko [Thu, 3 Jan 2013 20:34:34 +0000 (21:34 +0100)]
* configure.ac: Extend -Wno-trampolines to host.

11 years ago * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
Vladimir 'phcoder' Serbinenko [Thu, 3 Jan 2013 20:27:00 +0000 (21:27 +0100)]
* grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
entry->len = 0.

11 years ago* docs/grub.texi (Invoking grub-mkrelpath): New section.
Colin Watson [Thu, 3 Jan 2013 10:53:53 +0000 (10:53 +0000)]
* docs/grub.texi (Invoking grub-mkrelpath): New section.
(Invoking grub-script-check): Likewise.

11 years ago* docs/grub.texi (Invoking grub-mount): New section.
Colin Watson [Thu, 3 Jan 2013 10:32:57 +0000 (10:32 +0000)]
* docs/grub.texi (Invoking grub-mount): New section.
Reported by: Filipus Klutiero.  Fixes Debian bug #666427.

11 years ago* grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
Colin Watson [Wed, 2 Jan 2013 16:42:48 +0000 (16:42 +0000)]
* grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
test failures, so that a failing unit test correctly causes 'make
check' to fail.

11 years agoFix failing printf test.
Colin Watson [Wed, 2 Jan 2013 12:48:31 +0000 (12:48 +0000)]
Fix failing printf test.

* grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
'$' in the correct order when collecting type information.

11 years ago* docs/grub.texi (configfile): Explain environment variable
Colin Watson [Wed, 2 Jan 2013 09:29:48 +0000 (09:29 +0000)]
* docs/grub.texi (configfile): Explain environment variable
handling.
(source): New section.
Reported by: Arbiel Perlacremaz.  Fixes Savannah bug #35564.

11 years agoRemove several trivially-unnecessary uses of nested functions.
Colin Watson [Mon, 31 Dec 2012 17:31:38 +0000 (17:31 +0000)]
Remove several trivially-unnecessary uses of nested functions.

* grub-core/commands/i386/pc/sendkey.c
(grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
instead of nested.
* grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
Rename to ...
(legacy_file_getline): ... this.
* grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
Likewise.
* grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
* grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise.  Rename
to ...
(probe_dummy_iter): ... this.
* grub-core/kern/i386/coreboot/mmap.c
(grub_linuxbios_table_iterate: check_signature): Likewise.
* grub-core/kern/parser.c (grub_parser_split_cmdline:
check_varstate): Likewise.  Mark inline.
* grub-core/lib/arg.c (find_short: fnd_short): Likewise.  Pass
an additional parameter.
(find_long: fnd_long): Likewise.  Pass two additional parameters.
* grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
* grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
* grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
Likewise.  Rename to ...
(grub_cmos_find_port_iter): ... this.
* grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
Rename to ...
(find_rtc_iter): ... this.

* grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
function directly into the function body, since it is only called
once.

11 years ago* grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
Colin Watson [Sun, 30 Dec 2012 09:57:58 +0000 (09:57 +0000)]
* grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
__attribute__ ((unused)).
* grub-core/video/bochs.c (find_card): Likewise.
* grub-core/video/cirrus.c (find_card): Likewise.
* grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
* grub-core/video/sis315pro.c (find_card): Likewise.
* grub-core/video/sm712.c (find_card): Likewise.

11 years ago* util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
Colin Watson [Fri, 28 Dec 2012 07:21:17 +0000 (07:21 +0000)]
* util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
Fixes Savannah bug #37821.

11 years agoneater gnulib backport
Colin Watson [Fri, 28 Dec 2012 07:13:34 +0000 (07:13 +0000)]
neater gnulib backport

11 years agoApply program name transformations at build-time rather than at
Colin Watson [Fri, 28 Dec 2012 06:57:17 +0000 (06:57 +0000)]
Apply program name transformations at build-time rather than at
run-time.  Fixes Debian bug #696465.

* acinclude.m4 (grub_TRANSFORM): New macro.
* configure.ac: Create output variables with transformed names for
most programs.
* util/bash-completion.d/grub-completion.bash.in: Use
pre-transformed variables for program names.
* util/grub-install.in: Likewise.
* util/grub-kbdcomp.in: Likewise.
* util/grub-mkconfig.in: Likewise.
* util/grub-mkconfig_lib.in: Likewise.
* util/grub-mknetdir.in: Likewise.
* util/grub-mkrescue.in: Likewise.
* util/grub-mkstandalone.in: Likewise.
* util/grub-reboot.in: Likewise.
* util/grub-set-default.in: Likewise.
* util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
* tests/util/grub-shell-tester.in: Remove unused assignment.
* tests/util/grub-shell.in: Likewise.
* util/grub.d/00_header.in: Likewise.

11 years agoBackport gnulib fixes for C11. Fixes Savannah bug #37738.
Colin Watson [Fri, 28 Dec 2012 06:43:35 +0000 (06:43 +0000)]
Backport gnulib fixes for C11.  Fixes Savannah bug #37738.

* grub-core/gnulib/stdio.in.h (gets): Warn on use only if
HAVE_RAW_DECL_GETS.
* m4/stdio_h.m4 (gl_STDIO_H): Check for gets.

11 years ago * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
Vladimir 'phcoder' Serbinenko [Tue, 11 Dec 2012 16:40:35 +0000 (17:40 +0100)]
* util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
Reported by: Eriks Latosheks <foresterlv>.

11 years ago * docs/grub.texi (Network): Update instructions on generating netboot
Vladimir 'phcoder' Serbinenko [Mon, 10 Dec 2012 21:22:23 +0000 (22:22 +0100)]
* docs/grub.texi (Network): Update instructions on generating netboot
image.

11 years ago * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
Vladimir 'phcoder' Serbinenko [Mon, 10 Dec 2012 18:15:51 +0000 (19:15 +0100)]
* grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
around device name if necessarry.

11 years ago * util/grub-install.in: Follow the symbolic link parameter added
Paulo Flabiano Smorigo [Mon, 10 Dec 2012 16:07:01 +0000 (17:07 +0100)]
* util/grub-install.in: Follow the symbolic link parameter added
to the file command.

11 years ago * util/grub-install.in: Remove stale TODO.
Andrey Borzenkov [Mon, 10 Dec 2012 16:00:56 +0000 (17:00 +0100)]
* util/grub-install.in: Remove stale TODO.

11 years ago * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
Paulo Flabiano Smorigo [Mon, 10 Dec 2012 15:23:16 +0000 (16:23 +0100)]
* grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
dynamic allocation for the bootpath buffer.

11 years ago * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
Dr. Tilmann Bubeck [Mon, 10 Dec 2012 15:14:12 +0000 (16:14 +0100)]
* grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
window too small.

11 years ago * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
Vladimir 'phcoder' Serbinenko [Mon, 10 Dec 2012 15:07:33 +0000 (16:07 +0100)]
* grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
argument rather than font name. All users updated.
(grub_gfxterm_set_window): Likewise.

11 years ago * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
Vladimir Testov [Mon, 10 Dec 2012 10:45:00 +0000 (11:45 +0100)]
* util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
from working.

11 years ago * util/getroot.c (convert_system_partition_to_system_disk): Support
Vladimir 'phcoder' Serbinenko [Mon, 10 Dec 2012 10:12:38 +0000 (11:12 +0100)]
* util/getroot.c (convert_system_partition_to_system_disk): Support
nbd disks.

11 years ago * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
Vladimir 'phcoder' Serbinenko [Mon, 10 Dec 2012 08:22:40 +0000 (09:22 +0100)]
* grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
infinite loop on corrupted FS.

11 years ago Fix big-endian mtime.
Vladimir 'phcoder' Serbinenko [Sat, 8 Dec 2012 20:14:08 +0000 (21:14 +0100)]
Fix big-endian mtime.

* grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
together sec and usec.
(grub_ufs_dir): Use correct byteswapping for UFS time.

11 years ago Support big-endian UFS1.
Vladimir 'phcoder' Serbinenko [Sat, 8 Dec 2012 19:56:58 +0000 (20:56 +0100)]
Support big-endian UFS1.

* Makefile.util.def (libgrubmods): Add ufs_be.c
* grub-core/Makefile.core.def (ufs1_be): New module.
* grub-core/fs/ufs_be.c: New file.
* grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
the file.

11 years ago * include/grub/types.h: Fix functionality unaffecting typo in
Leif Lindholm [Wed, 28 Nov 2012 13:18:45 +0000 (14:18 +0100)]
    * include/grub/types.h: Fix functionality unaffecting typo in
        GRUB_TARGET_WORDSIZE conditional macro.

11 years ago * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
Paulo Flabiano Smorigo [Wed, 28 Nov 2012 13:14:20 +0000 (14:14 +0100)]
* grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.

11 years agoFix ordering and tab indentation of NetBSD boot menu entries.
Grégoire Sutre [Sun, 28 Oct 2012 10:55:22 +0000 (11:55 +0100)]
Fix ordering and tab indentation of NetBSD boot menu entries.

11 years ago* grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
Christoph Junghans [Fri, 12 Oct 2012 14:37:49 +0000 (15:37 +0100)]
* grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
Fixes Savannah bug #37558.

11 years ago* grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
Colin Watson [Fri, 12 Oct 2012 14:34:33 +0000 (15:34 +0100)]
* grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
description of extract_entries_configfile.

11 years ago * grub-core/Makefile.am (moddep.lst): Use $(AWK) instead of awk
Christoph Junghans [Fri, 12 Oct 2012 13:04:02 +0000 (15:04 +0200)]
  * grub-core/Makefile.am (moddep.lst): Use $(AWK) instead of awk

11 years ago* grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
Colin Watson [Fri, 5 Oct 2012 12:09:19 +0000 (13:09 +0100)]
* grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
preferred_address.
(grub_cmd_linux): Likewise.
* grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
preferred_lifetime.  Update all users.

12 years ago* Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
Colin Watson [Wed, 26 Sep 2012 12:51:13 +0000 (13:51 +0100)]
* Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
Reported by: Daniel Kahn Gillmor.  Fixes Debian bug #688799.

12 years ago* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
Colin Watson [Wed, 26 Sep 2012 12:12:20 +0000 (13:12 +0100)]
* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
errors from grub-probe to /dev/null, not stdout.

12 years ago * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
Vladimir 'phcoder' Serbinenko [Wed, 26 Sep 2012 07:33:41 +0000 (09:33 +0200)]
* grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
sector 1.

12 years ago* util/grub-install.in: Make the error message if $source_dir
Colin Watson [Mon, 24 Sep 2012 17:50:35 +0000 (18:50 +0100)]
* util/grub-install.in: Make the error message if $source_dir
doesn't exist more useful.

12 years agoFix grub-emu build on FreeBSD.
Colin Watson [Sat, 22 Sep 2012 20:19:58 +0000 (21:19 +0100)]
Fix grub-emu build on FreeBSD.

* Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
* grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
headers on Linux.
(GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
implementation is currently Linux-specific.
* util/getroot.c (exec_pipe): Define only on Linux or when either
libzfs or libnvpair is unavailable.
(find_root_devices_from_poolname): Remove unused path variable.

12 years ago* grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
Colin Watson [Wed, 19 Sep 2012 01:44:54 +0000 (02:44 +0100)]
* grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
incorrect off-by-one fix from 2011-02-12.  A 62-sector core image
should fit before end == 63.

12 years ago* util/grub-setup.c (write_rootdev): Remove unused core_img
Colin Watson [Wed, 19 Sep 2012 01:41:51 +0000 (02:41 +0100)]
* util/grub-setup.c (write_rootdev): Remove unused core_img
parameter.  Update all callers.
(setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
'gcc -Wunused-but-set-variable'.  Remove unnecessary nested #ifdef
GRUB_SETUP_BIOS.

12 years ago * util/grub-mkconfig_lib.in (grub_tab): New variable.
Vladimir 'phcoder' Serbinenko [Tue, 18 Sep 2012 11:04:06 +0000 (13:04 +0200)]
* util/grub-mkconfig_lib.in (grub_tab): New variable.
(grub_add_tab): New function.
* util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
* util/grub.d/10_illumos.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/10_xnu.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.
* util/grub.d/30_os-prober.in: Likewise.

12 years ago * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
Vladimir 'phcoder' Serbinenko [Tue, 18 Sep 2012 09:52:19 +0000 (11:52 +0200)]
* grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
* grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
* grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
ieee1275-nocursor.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.

12 years ago * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
Vladimir 'phcoder' Serbinenko [Tue, 18 Sep 2012 09:44:29 +0000 (11:44 +0200)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
le-conversion.
Reported by: BURETTE, Bernard.

12 years ago* util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
Colin Watson [Mon, 17 Sep 2012 15:58:50 +0000 (16:58 +0100)]
* util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
from comment.

12 years ago* grub-core/term/terminfo.c: Only fix up powerpc key repeat on
Colin Watson [Fri, 14 Sep 2012 10:23:36 +0000 (11:23 +0100)]
* grub-core/term/terminfo.c: Only fix up powerpc key repeat on
IEEE1275 machines.  Fixes powerpc-emu compilation.
* include/grub/terminfo.h: Likewise.

12 years ago * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
Vladimir 'phcoder' Serbinenko [Wed, 12 Sep 2012 06:31:05 +0000 (08:31 +0200)]
* include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
a const pointer.
* grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
const pointer.
(efiemu_set_variable): Make vendor_guid a const pointer.

12 years ago Don't require grub-mkconfig_lib to generate manpages for programs.
Vladimir 'phcoder' Serbinenko [Wed, 12 Sep 2012 06:27:26 +0000 (08:27 +0200)]
Don't require grub-mkconfig_lib to generate manpages for programs.

* gentpl.py (manpage): Additional argument adddeps. Add adddeps to
dependencies, don't add grub-mkconfig_lib.
(program): Pass empty adddeps.
(script): Pass grub-mkconfig_lib as adddeps.

12 years ago * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
Vladimir 'phcoder' Serbinenko [Tue, 11 Sep 2012 05:53:26 +0000 (07:53 +0200)]
* grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
* util/getroot.c (grub_find_device): Likewise.
(get_mdadm_uuid): Likewise.
(grub_util_is_imsm): Likewise.
(grub_util_pull_device): Likewise.
* util/grub-probe.c (probe): Likewise.

12 years ago * grub-core/loader/efi/appleloader.c (devpath_8): New var.
Benoit Gschwind [Mon, 10 Sep 2012 07:34:29 +0000 (09:34 +0200)]
* grub-core/loader/efi/appleloader.c (devpath_8): New var.
(devs): Add devpath_8.

12 years ago * grub-core/Makefile.core.def (efifwsetup): New module.
Peter Jones [Sat, 8 Sep 2012 07:40:24 +0000 (09:40 +0200)]
* grub-core/Makefile.core.def (efifwsetup): New module.
* grub-core/commands/efi/efifwsetup.c: New file.
* grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
* include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
New define.
* include/grub/efi/efi.h (grub_efi_set_variable): New proto.

12 years ago * configure.ac: Add SuSe path.
Jiri Slaby [Wed, 5 Sep 2012 14:09:41 +0000 (16:09 +0200)]
* configure.ac: Add SuSe path.

12 years ago* NEWS: Fix typo.
Colin Watson [Wed, 5 Sep 2012 12:55:54 +0000 (13:55 +0100)]
* NEWS: Fix typo.

12 years ago* util/import_gcry.py: Sort cipher_files, to make build system
Colin Watson [Wed, 5 Sep 2012 08:00:39 +0000 (09:00 +0100)]
* util/import_gcry.py: Sort cipher_files, to make build system
generation more deterministic.

12 years ago * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
Vladimir 'phcoder' Serbinenko [Wed, 5 Sep 2012 06:56:08 +0000 (08:56 +0200)]
* grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
* grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
(grub_set_datetime): Likewise.