Colin Watson [Sat, 11 Dec 2010 01:17:25 +0000 (01:17 +0000)]
* New Bazaar snapshot.
- ZFS moved into grub-core.
- Extend gettext to fall back from ll_CC to ll, and set lang to include
country part by default so that Chinese works (LP: #686788).
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.
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.
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.
* 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.
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.
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.
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.
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.
Colin Watson [Tue, 23 Nov 2010 10:32:29 +0000 (10:32 +0000)]
Re-expand a couple of dpkg architecture wildcards to exclude certain
special cases: gcc-4.4-multilib is not available on kfreebsd-i386 or
hurd-i386, and qemu-system is not available on hurd-i386.
Colin Watson [Tue, 23 Nov 2010 10:10:56 +0000 (10:10 +0000)]
Upgrade the installed core image when upgrading grub-efi-ia32 or
grub-efi-amd64, although only if /boot/efi/EFI/<id> (where <id> is an
identifier based on GRUB_DISTRIBUTOR, e.g. 'debian') already exists.
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).
Colin Watson [Tue, 16 Nov 2010 14:05:00 +0000 (14:05 +0000)]
* New Bazaar snapshot. Too many changes to list in full, but some of the
more user-visible ones are as follows:
- GRUB script:
+ Function parameters, "break", "continue", "shift", "setparams",
"return", and "!".
+ "export" command supports multiple variable names.
+ Multi-line quoted strings support.
+ Wildcard expansion.
- sendkey support.
- USB hotunplugging and USB serial support.
- Rename CD-ROM to cd on BIOS.
- Add new --boot-directory option to grub-install, grub-reboot, and
grub-set-default; the old --root-directory option is still accepted
but was often confusing.
- Basic btrfs detection/UUID support (but no file reading yet).
- bash-completion for utilities.
- If a device is listed in device.map, always assume that it is
BIOS-visible rather than using extra layers such as LVM or RAID.
- Add grub-mknetdir script (closes: #550658).
- Remove deprecated "root" command.
- Handle RAID devices containing virtio components.
- GRUB Legacy configuration file support (via grub-menulst2cfg).
- Keyboard layout support (via grub-mklayout and grub-kbdcomp).
- Check generated grub.cfg for syntax errors before saving.
- Pause execution for at most ten seconds if any errors are displayed,
so that the user has a chance to see them.
- Support submenus.
- Write embedding zone using Reed-Solomon, so that it's robust against
being partially overwritten (closes: #550702, #591416, #593347).
- GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
into a single GRUB_DISABLE_RECOVERY variable.
- Fix loader memory allocation failure (closes: #551627).
- Don't call savedefault on recovery entries (closes: #589325).
- Support triple-indirect blocks on ext2 (closes: #543924).
- Recognise DDF1 fake RAID (closes: #603354).
* 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.
* 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.