]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years ago Don't use disk subsystem in freebsd_boot.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:06:41 +0000 (07:06 +0100)]
Don't use disk subsystem in freebsd_boot.

* grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
(freebsd_biosdev): Likewise.
(grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
(grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.

13 years ago Handling of files of unknown size is currently limited. They can't be
Vladimir 'phcoder' Serbinenko [Sun, 26 Dec 2010 20:15:31 +0000 (21:15 +0100)]
Handling of files of unknown size is currently limited. They can't be
used e.g. for initrd or modules. Moreover gzip handling of not
easily seekable files is buggy. Disable unknown file size for now. May
be inefficient but works.

* grub-core/io/gzio.c (test_header): Always retrieve the file size.
* grub-core/io/xzio.c (grub_xzio_open): Likewise.

13 years ago * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
Mirko Parthey [Sun, 26 Dec 2010 19:49:08 +0000 (20:49 +0100)]
* grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
floppy probe.

13 years ago * grub-core/disk/raid.c (insert_array): Don't add spurious members.
Jeroen Dekkers [Sat, 25 Dec 2010 21:32:54 +0000 (22:32 +0100)]
* grub-core/disk/raid.c (insert_array): Don't add spurious members.

13 years ago * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
Shea Levy [Sat, 25 Dec 2010 17:21:46 +0000 (18:21 +0100)]
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.

13 years ago * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 17:16:01 +0000 (18:16 +0100)]
* util/grub.d/30_os-prober.in: Don't emit drivemap directive for
Windows Server 2008.
Reported by: Devin Giddings.

13 years ago * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 13:09:36 +0000 (14:09 +0100)]
* grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
writing an error message because of async power management.
* grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
(grub_reboot): Likewise.

13 years ago* tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
Jordan Uggla [Thu, 23 Dec 2010 11:51:18 +0000 (11:51 +0000)]
* tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
keep unit tests from failing when they shouldn't.

13 years ago* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
Colin Watson [Tue, 21 Dec 2010 17:41:47 +0000 (17:41 +0000)]
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
previous patch increased the size of the RS code by 20 bytes (at
least with gcc-4.4), so increase this by 20 bytes to match.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.

13 years ago* grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
Colin Watson [Tue, 21 Dec 2010 16:51:08 +0000 (16:51 +0000)]
* grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
scratch area.  Make sure to initialise chosen in standalone mode as
well as non-standalone.
Reported by: Robert Hooker and Andy Whitcroft.
Tested by: Andy Whitcroft.

13 years ago* grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
Colin Watson [Tue, 21 Dec 2010 13:52:07 +0000 (13:52 +0000)]
* grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
constructing a new unescaped string and passing it to grub_xputs in
one go, rather than passing characters to grub_printf one at a time.

13 years ago* grub-core/fs/udf.c (read_string): Pacify GCC warning by
Colin Watson [Tue, 21 Dec 2010 13:00:10 +0000 (13:00 +0000)]
* grub-core/fs/udf.c (read_string): Pacify GCC warning by
initialising utf16.

13 years ago* util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
Colin Watson [Tue, 21 Dec 2010 12:49:29 +0000 (12:49 +0000)]
* util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
comment.  Add an extra layer of quotation, requiring the output of
this function to be used in a printf format string.
(gettext_printf): New function.
* util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
Extract translatable strings from here-documents and use a temporary
variable instead, so that xgettext can find them.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.

* po/grub.d.sed: New file.
* po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
arguments.  Set c-format flags on all strings extracted from
util/grub.d/ (xgettext refuses to include these itself for strings
it extracted from a shell file, but these really are c-format).

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
Vladimir 'phcoder' Serbinenko [Mon, 20 Dec 2010 15:13:01 +0000 (16:13 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
Avoid next pointing to nowhere.

13 years ago * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:52:18 +0000 (00:52 +0100)]
* grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
rather than assuming than rootblock is exactly in the middle.
(grub_affs_label): Likewise.

13 years ago * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:49:52 +0000 (00:49 +0100)]
* grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
reserved_first_sector to 0.
* grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
* grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
* grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.

13 years ago Fix handling of UTF-16 UDF labels.
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:43:41 +0000 (00:43 +0100)]
Fix handling of UTF-16 UDF labels.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
(read_string): .. here.
(grub_udf_label): Use read_string.

13 years ago * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 21:47:50 +0000 (22:47 +0100)]
* util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.

13 years ago * grub-core/normal/menu_entry.c (run): Execute commands from menu
BVK Chaitanya [Sun, 19 Dec 2010 04:25:51 +0000 (09:55 +0530)]
* grub-core/normal/menu_entry.c (run): Execute commands from menu
editor under argument scope.
Reported by: Jordan Uggla

13 years agomerge with mainline
BVK Chaitanya [Sun, 19 Dec 2010 03:47:22 +0000 (09:17 +0530)]
merge with mainline

13 years ago* grub-core/normal/term.c (print_more): Make \r or \n scroll one
Colin Watson [Sat, 18 Dec 2010 17:37:48 +0000 (17:37 +0000)]
* grub-core/normal/term.c (print_more): Make \r or \n scroll one
line, and other keys scroll an entire page (previous handling was
for \r and \n to scroll a page and other keys to scroll two lines).

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 13:31:05 +0000 (14:31 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Set ptrdest to correct get_physical_target_address rather than
incorrect get_virtual_current_address.

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
kashyap garimella [Sat, 18 Dec 2010 14:22:11 +0000 (15:22 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
correct cat to grub_uint8_t * rather than grub_uint32_t *.

13 years ago* .bzrignore: Ignore grub-core/rs_decoder.S.
Colin Watson [Fri, 10 Dec 2010 12:56:45 +0000 (12:56 +0000)]
* .bzrignore: Ignore grub-core/rs_decoder.S.

13 years ago* grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
Colin Watson [Fri, 10 Dec 2010 11:45:08 +0000 (11:45 +0000)]
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
.mo/.mo.gz opening sequence to ...
(grub_mofile_open_lang): ... here.
(grub_gettext_init_ext): If opening ll_CC fails, try ll.
* util/grub.d/00_header.in (grub_lang): Include country part of
locale.
Reported by: Mario Limonciello.

13 years ago2010-12-09 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 9 Dec 2010 13:09:37 +0000 (14:09 +0100)]
2010-12-09  Robert Millan  <rmh@gnu.org>

* NEWS: Document addition of ZFS support.

13 years agoexecute menu editor commands with argument scope
BVK Chaitanya [Wed, 8 Dec 2010 11:13:11 +0000 (16:43 +0530)]
execute menu editor commands with argument scope

13 years ago* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
Colin Watson [Sat, 4 Dec 2010 16:19:26 +0000 (16:19 +0000)]
* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
rather than `/ 2', as the latter requires -Wa,--divide which would
require bumping our minimum binutils version.

13 years ago * util/grub-script-check.c (main): Print script line number on
BVK Chaitanya [Fri, 3 Dec 2010 03:28:34 +0000 (08:58 +0530)]
* util/grub-script-check.c (main): Print script line number on
error.

13 years agoprint line number on error
BVK Chaitanya [Fri, 3 Dec 2010 03:25:57 +0000 (08:55 +0530)]
print line number on error

13 years agoMerge ZFS.
Robert Millan [Wed, 1 Dec 2010 21:57:49 +0000 (22:57 +0100)]
Merge ZFS.

13 years agoUpdate GPL for ZFS code to version 3, move copyright lines for Vladimir and me to...
Robert Millan [Wed, 1 Dec 2010 21:55:26 +0000 (22:55 +0100)]
Update GPL for ZFS code to version 3, move copyright lines for Vladimir and me to FSF (covered by our assignments)

13 years ago2010-12-01 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 1 Dec 2010 21:42:11 +0000 (22:42 +0100)]
2010-12-01  Robert Millan  <rmh@gnu.org>

* grub-core/fs/zfs/zfs.c: New file.
* grub-core/fs/zfs/zfs_fletcher.c: Likewise.
* grub-core/fs/zfs/zfs_lzjb.c: Likewise.
* grub-core/fs/zfs/zfs_sha256.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.

* include/grub/zfs/dmu.h: Likewise.
* include/grub/zfs/dmu_objset.h: Likewise.
* include/grub/zfs/dnode.h: Likewise.
* include/grub/zfs/dsl_dataset.h: Likewise.
* include/grub/zfs/dsl_dir.h: Likewise.
* include/grub/zfs/sa_impl.h: Likewise.
* include/grub/zfs/spa.h: Likewise.
* include/grub/zfs/uberblock_impl.h: Likewise.
* include/grub/zfs/vdev_impl.h: Likewise.
* include/grub/zfs/zap_impl.h: Likewise.
* include/grub/zfs/zap_leaf.h: Likewise.
* include/grub/zfs/zfs.h: Likewise.
* include/grub/zfs/zfs_acl.h: Likewise.
* include/grub/zfs/zfs_znode.h: Likewise.
* include/grub/zfs/zil.h: Likewise.
* include/grub/zfs/zio.h: Likewise.
* include/grub/zfs/zio_checksum.h: Likewise.

* Makefile.util.def: Build ZFS into libgrubmods.
* grub-core/Makefile.core.def: Build zfs.mod.

13 years agomerge some more commits from before Savannah compromise (mirrored by Launchpad)
Colin Watson [Wed, 1 Dec 2010 16:19:26 +0000 (16:19 +0000)]
merge some more commits from before Savannah compromise (mirrored by Launchpad)

13 years ago * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
Szymon Janc [Tue, 30 Nov 2010 20:35:59 +0000 (21:35 +0100)]
* grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
variable.
* grub-core/commands/wildcard.c (match_files): Likewise.

13 years ago2010-11-30 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 30 Nov 2010 18:33:12 +0000 (19:33 +0100)]
2010-11-30  Robert Millan  <rmh@gnu.org>

* grub-core/loader/i386/bsd.c
(grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
whether kernel is loaded using grub_loader_is_loaded(), rather
than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
certain error conditions.

13 years agomerge commits from before Savannah compromise
Colin Watson [Tue, 30 Nov 2010 17:01:52 +0000 (17:01 +0000)]
merge commits from before Savannah compromise

13 years agoAdd missing include
Robert Millan [Tue, 30 Nov 2010 15:23:41 +0000 (16:23 +0100)]
Add missing include

13 years ago2010-11-30 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 30 Nov 2010 14:36:47 +0000 (15:36 +0100)]
2010-11-30  Robert Millan  <rmh@gnu.org>

* grub-core/commands/echo.c (grub_cmd_echo): Call grub_refresh()
after printing a message.

13 years ago Avoid using tricks for initialising endian variables.
Vladimir 'phcoder' Serbinenko [Fri, 26 Nov 2010 21:29:19 +0000 (22:29 +0100)]
Avoid using tricks for initialising endian variables.

* grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
Make const.
(GRUB_MOD_INIT): Don't byte-swap.
* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
* include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
(grub_swap_bytes32_compile_time): Likewise.
(grub_cpu_to_le32_compile_time): Likewise.
(grub_cpu_to_le16_compile_time): Likewise.

13 years ago * util/grub-setup.c (setup): Stop recommending --force. People who
Vladimir 'phcoder' Serbinenko [Fri, 26 Nov 2010 21:03:16 +0000 (22:03 +0100)]
* util/grub-setup.c (setup): Stop recommending --force. People who
understand the dangers of blocklists are able to find this option
anyway and the ones who don't shouldn't use it anyway.

13 years ago2010-11-26 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 26 Nov 2010 14:35:40 +0000 (15:35 +0100)]
2010-11-26  Robert Millan  <rmh@gnu.org>

* grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
Update all users.

13 years agoFix LVM-on-RAID probing.
Colin Watson [Fri, 26 Nov 2010 12:26:37 +0000 (12:26 +0000)]
Fix LVM-on-RAID probing.

* util/grub-probe.c (probe): Remember which disk was detected as
RAID (perhaps an LVM physical volume).  Use that disk's raidname
rather than that of the top-level disk.

13 years ago Fix cmdline argument quotes for setparams command of menuentry
BVK Chaitanya [Thu, 25 Nov 2010 14:29:10 +0000 (19:59 +0530)]
Fix cmdline argument quotes for setparams command of menuentry
definitions.

* grub-core/commands/menuentry.c (setparams_prefix): Use single
quotes for arguments.
* grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
grub_strchrsub function instead.

* include/grub/misc.h (grub_strchrsub): New function.

13 years agomerge with mainline
BVK Chaitanya [Thu, 25 Nov 2010 14:24:50 +0000 (19:54 +0530)]
merge with mainline

13 years agovariable ordering
BVK Chaitanya [Thu, 25 Nov 2010 13:37:02 +0000 (19:07 +0530)]
variable ordering

13 years agofix changelog and doc
BVK Chaitanya [Thu, 25 Nov 2010 13:35:16 +0000 (19:05 +0530)]
fix changelog and doc

13 years agoreplaced with grub_strchrsub function
BVK Chaitanya [Thu, 25 Nov 2010 13:26:20 +0000 (18:56 +0530)]
replaced with grub_strchrsub function

13 years agobetter changelog message
BVK Chaitanya [Thu, 25 Nov 2010 12:55:26 +0000 (18:25 +0530)]
better changelog message

13 years ago* util/deviceiter.c (grub_util_iterate_devices): Save a bit of
Colin Watson [Wed, 24 Nov 2010 19:43:32 +0000 (19:43 +0000)]
* util/deviceiter.c (grub_util_iterate_devices): Save a bit of
effort by skipping "." and ".." entries up-front.
Suggested by: Michael Lazarev.

13 years ago* grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
Colin Watson [Wed, 24 Nov 2010 19:32:49 +0000 (19:32 +0000)]
* grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
ldflags to ldadd, to fix link line ordering.
(none_decompress): Likewise.

13 years ago* grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
Colin Watson [Wed, 24 Nov 2010 12:07:14 +0000 (12:07 +0000)]
* grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
platforms.
(grub-emu-lite): Remove kern/emu/cache.S.

13 years ago* util/deviceiter.c (compare_devices): If the by-id link for a
Colin Watson [Tue, 23 Nov 2010 17:42:06 +0000 (17:42 +0000)]
* util/deviceiter.c (compare_devices): If the by-id link for a
device couldn't be resolved, fall back to sorting by the by-id link
rather than segfaulting.
Reported and tested by: Daniel Mierswa.

13 years ago* Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
Colin Watson [Tue, 23 Nov 2010 15:56:18 +0000 (15:56 +0000)]
* Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
ldflags, to fix link line ordering.

13 years ago* grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
Colin Watson [Tue, 23 Nov 2010 13:00:05 +0000 (13:00 +0000)]
* grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
linkers are picky about this.

13 years ago* grub-core/Makefile.am (command.lst): Adjust sed expression
Colin Watson [Tue, 23 Nov 2010 12:52:40 +0000 (12:52 +0000)]
* grub-core/Makefile.am (command.lst): Adjust sed expression
ordering so that extended and priority commands aren't treated as
ordinary commands.

13 years ago* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
Colin Watson [Tue, 23 Nov 2010 10:48:46 +0000 (10:48 +0000)]
* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
Remove byte-swapping function calls, which are not valid in
structure initialisers.
* grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
non-const.
(GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
grub_gpt_partition_type_bios_boot.

13 years agoFix test program build on GNU/kFreeBSD.
Colin Watson [Mon, 22 Nov 2010 18:22:50 +0000 (18:22 +0000)]
Fix test program build on GNU/kFreeBSD.

* Makefile.util.def (example_unit_test): Add `$(LIBZFS)
$(LIBNVPAIR)' library dependencies.

13 years agousual e-mail address
Colin Watson [Mon, 22 Nov 2010 18:22:00 +0000 (18:22 +0000)]
usual e-mail address

13 years ago* util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
Colin Watson [Mon, 22 Nov 2010 13:57:16 +0000 (13:57 +0000)]
* util/grub-install.in: Fix parsing of --grub-mkrelpath= option.

13 years ago* util/grub-install.in: Remove excessive quoting that broke
Colin Watson [Mon, 22 Nov 2010 12:20:57 +0000 (12:20 +0000)]
* util/grub-install.in: Remove excessive quoting that broke
installations to RAID devices.

13 years ago * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:58:06 +0000 (22:58 +0100)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
bootloader version instead of 0.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:52:27 +0000 (22:52 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
warning.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:48:26 +0000 (22:48 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
retrieve the metadat sector if size isn't known.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.

13 years agoreuse code from legacy parser
BVK Chaitanya [Fri, 19 Nov 2010 13:38:44 +0000 (19:08 +0530)]
reuse code from legacy parser

13 years agoadd changelog entry
BVK Chaitanya [Fri, 19 Nov 2010 04:47:16 +0000 (10:17 +0530)]
add changelog entry

13 years agouse single quotes in menuentry setparams command
BVK Chaitanya [Fri, 19 Nov 2010 04:45:25 +0000 (10:15 +0530)]
use single quotes in menuentry setparams command

13 years ago2010-11-18 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 18 Nov 2010 15:52:27 +0000 (16:52 +0100)]
2010-11-18  Robert Millan  <rmh@gnu.org>

* grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
with grub_memcmp().

13 years ago * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
Vladimir 'phcoder' Serbinenko [Thu, 18 Nov 2010 01:08:01 +0000 (02:08 +0100)]
* grub-core/normal/menu_entry.c (print_up): Fix displacement of up
arrow.
Reported by: Jordan Uggla.

13 years ago Make better UTF compliant.
Vladimir 'phcoder' Serbinenko [Wed, 17 Nov 2010 15:13:16 +0000 (16:13 +0100)]
Make better UTF compliant.

* grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
sequences as incorrect.
(grub_is_valid_utf8): Likewise.
(grub_utf8_to_ucs4): Likewise.
(grub_ucs4_to_utf8): Handle codepoints outside of BMP.
(grub_ucs4_to_utf8_alloc): Likewise.
* include/grub/charset.h (grub_utf16_to_utf8): Likewise.

13 years ago Make legacy_source behave like source.
Vladimir 'phcoder' Serbinenko [Wed, 17 Nov 2010 07:41:18 +0000 (08:41 +0100)]
Make legacy_source behave like source.

* grub-core/commands/legacycfg.c (legacy_file): Don't call
grub_show_menu.
(grub_cmd_legacy_source): Call grub_show_menu if needed.

13 years ago* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
Colin Watson [Tue, 16 Nov 2010 15:54:18 +0000 (15:54 +0000)]
* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
(-Wunused implies -Wunused-parameter, but not vice versa).

13 years ago* configure.ac: Make error messages less confusing by testing for
Colin Watson [Tue, 16 Nov 2010 15:50:20 +0000 (15:50 +0000)]
* configure.ac: Make error messages less confusing by testing for
-Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
accepted, but produces a diagnostic if something else is wrong).

13 years ago * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
Vladimir 'phcoder' Serbinenko [Mon, 15 Nov 2010 09:01:11 +0000 (10:01 +0100)]
* grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
(now unused).
(grub_keyboard_controller_init)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
read the initial state since controller isn't inited yet.

13 years ago * grub-core/lib/relocator.c (malloc_in_range): Take into account that
Vladimir 'phcoder' Serbinenko [Mon, 15 Nov 2010 08:50:58 +0000 (09:50 +0100)]
* grub-core/lib/relocator.c (malloc_in_range): Take into account that
allocate_regbeg may need to create new chunk header.

13 years ago Fix quoting in legacy parser.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 23:33:28 +0000 (00:33 +0100)]
Fix quoting in legacy parser.

* grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
single quotes.
(grub_legacy_parse): Likewise.
Reported by: Jordan Uggla.
Tested by: Jordan Uggla.

13 years ago Don't add -lgcc on i386 and x86_64.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 22:36:20 +0000 (23:36 +0100)]
Don't add -lgcc on i386 and x86_64.

* configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
* conf/Makefile.common (LDADD_KERNEL): Likewise.
* grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.

13 years ago * configure.ac: Add -Wno-trampolines when supported.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 16:13:44 +0000 (17:13 +0100)]
* configure.ac: Add -Wno-trampolines when supported.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
Modestas Vainius [Sun, 14 Nov 2010 16:09:13 +0000 (17:09 +0100)]
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
fakeraid.

13 years ago Add generic logical block size support for UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 16:03:49 +0000 (17:03 +0100)]
Add generic logical block size support for UDF.

* grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
(GRUB_UDF_BLKSZ): Removed.
(struct grub_udf_data): New field "lbshift" to hold the logical block
size of the file system in log2 format. All users updated.
(sblocklist): Change type to unsigned.
(grub_udf_mount): Change type of "sblklist" to unsigned.
Move AVDP search before VRS recognition, because the latter requires
knowledge of the logical block size, which is detected during the
former.
Detect and validate logical block size during AVDP search, adding
support for block sizes 512, 1024 and 4096.
Make VRS recognition independent of block size.

13 years ago Add generic logical block size support for UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:58:50 +0000 (16:58 +0100)]
Add generic logical block size support for UDF.

* grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
(GRUB_UDF_BLKSZ): Removed.
(struct grub_udf_data): New field "lbshift" to hold the logical block
size of the file system in log2 format. All users updated.
(sblocklist): Change type to unsigned.
(grub_udf_mount): Change type of "sblklist" to unsigned.
Move AVDP search before VRS recognition, because the latter requires
knowledge of the logical block size, which is detected during the
former.
Detect and validate logical block size during AVDP search, adding
support for block sizes 512, 1024 and 4096.
Make VRS recognition independent of block size.

13 years ago Properly handle deleted files on UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:51:45 +0000 (16:51 +0100)]
Properly handle deleted files on UDF.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
set.

13 years ago Support reading files larger than 2 GiB.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:48:17 +0000 (16:48 +0100)]
Support reading files larger than 2 GiB.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
"offset" to grub_off_t.
(grub_udf_read_file): Likewise for parameter "pos".

13 years ago * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 15:25:28 +0000 (16:25 +0100)]
* docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
unavailable.
(Simple configuration): Refer to Changes from GRUB Legacy about
save_env availability.

13 years ago * util/grub-install.in: Ignore empty partition table detection
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 15:15:41 +0000 (16:15 +0100)]
* util/grub-install.in: Ignore empty partition table detection
instead of trying to include part_ module.

13 years ago * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 13:13:11 +0000 (14:13 +0100)]
* grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
LVM on RAID support.

13 years ago Properly define WORDS_BIGENDIAN in wrapped environments.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 12:37:59 +0000 (13:37 +0100)]
Properly define WORDS_BIGENDIAN in wrapped environments.

* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
definition.
* grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.

Reported by: Manoel Rebelo Abranches.
Tested by: Manoel Rebelo Abranches.

13 years ago * util/grub-mkconfig.in: Fix quoting.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:27:29 +0000 (16:27 +0100)]
* util/grub-mkconfig.in: Fix quoting.

13 years ago Support big ext2 files.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:11:24 +0000 (16:11 +0100)]
Support big ext2 files.

* grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
(grub_ext2_read_block): Support triple indirect blocks.
(grub_ext2_read_file): Use 64-bit types and read size_high.
(grub_ext2_open): Read size_high.
Reported by: Ximin Luo.
Tested by: Manoel Rebelo Abranches.

13 years ago * util/grub-install.in: Handle filenames containing spaces.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:03:29 +0000 (16:03 +0100)]
* util/grub-install.in: Handle filenames containing spaces.
Reported by: Jordan Uggla.
Tested by: Jordan Uggla.

13 years ago * util/grub-mkconfig.in (grub_script_check): New variable.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:00:39 +0000 (16:00 +0100)]
* util/grub-mkconfig.in (grub_script_check): New variable.
Use grub_script_check instead of grub-script-check.
Reported by: Barry Jackson.

13 years ago * docs/grub.texi (menu): Correct the order.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 14:56:23 +0000 (15:56 +0100)]
* docs/grub.texi (menu): Correct the order.
Reported by: D. Hugh Redelmeier.

13 years ago * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
Vladimir 'phcoder' Serbinenko [Fri, 12 Nov 2010 07:45:16 +0000 (08:45 +0100)]
* grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
jump.

13 years ago2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
Manoel Rebelo Abranches [Mon, 8 Nov 2010 13:14:54 +0000 (11:14 -0200)]
2010-11-08  Manoel Rebelo Abranches <mrabran@br.ibm.com>

        * include/grub/elfload.h (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * kern/elf.c (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * grub-core/loader/powerpc/ieee1275/linux.c:
        (grub_linux_claimmap_iterate): New function. Uses the "available"property
        in the "memory" node for memory allocation for kernel in the PowerPC loader.
        (grub_linux_load32): Correctly find linux entry point offset.
        (grub_linux_load64): Likewise.

13 years ago2010-11-07 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 7 Nov 2010 15:29:10 +0000 (16:29 +0100)]
2010-11-07  Robert Millan  <rmh@gnu.org>

On mips-yeeloong, build with -march=loongson2f when this flag is
available (GCC >= 4.4).
* conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
`-march=mips3'.
* configure.ac: For mips-yeeloong, add -march=loongson2f if available,
or otherwise add -march=mips3.

13 years ago Suppress shell expansion on echo '*' and echo "*" like cases.
BVK Chaitanya [Sun, 7 Nov 2010 14:52:29 +0000 (20:22 +0530)]
Suppress shell expansion on echo '*' and echo "*" like cases.
Reported by: Jordan Uggla.

* grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
string arguments before shell expansion.
* tests/grub_cmd_echo.in: New testcases.

13 years ago2010-11-07 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 7 Nov 2010 14:10:09 +0000 (15:10 +0100)]
2010-11-07  Robert Millan  <rmh@gnu.org>

* conf/mips-qemu-mips.rmk: Remove stale file from previous
transition.

13 years agomerge with mainline
BVK Chaitanya [Sun, 7 Nov 2010 13:01:41 +0000 (18:31 +0530)]
merge with mainline

13 years agoadd changelog entry
BVK Chaitanya [Sun, 7 Nov 2010 10:48:29 +0000 (16:18 +0530)]
add changelog entry

13 years agosuppress shell expansion inside quoted strings
BVK Chaitanya [Sun, 7 Nov 2010 10:43:14 +0000 (16:13 +0530)]
suppress shell expansion inside quoted strings