Colin Watson [Mon, 16 May 2011 16:36:32 +0000 (17:36 +0100)]
Drop lenny compatibility from grub2-common's dpkg/install-info
dependency, since it produces a Lintian warning and using the current
packaging on lenny is probably rather a stretch anyway.
Colin Watson [Sun, 15 May 2011 15:42:15 +0000 (16:42 +0100)]
Create grub-<platform>-bin packages corresponding to all grub-<platform>
packages (except for grub-emu). These do not automatically install the
boot loader or update grub.cfg, and they install their binaries to
/usr/lib/grub/<cpu>-<platform>/; this means that can be installed in
parallel, making it easier to use them to build GRUB-based disk images
(e.g. d-i). The grub-<platform> packages now depend on these and
include symlinks, so their behaviour will remain as before.
* grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
unused modules since currently referrence counter isn't reliable and
there isn't much memory to recover there anyway.
* util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
sections shifted.
(insert_string): Make argument const char * instead of char *.
(write_section_data): Handle long section names.
Handle module_license.
Give ATA device a bit more time on first try in order to allow disks
to spin up.
* grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
if dev->present is 1. Reset dev->present on failure.
(grub_ata_device_initialize): Set dev->present to 1.
* include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
(grub_ata_device): New member 'present'.
* grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
file_path to 0 for surety.
(grub_chainloader_boot): Set exit_data to NULL.
Unset the loader once done.
(grub_cmd_chainloader): Fix confusing error message if file is empty.
Colin Watson [Wed, 4 May 2011 13:37:47 +0000 (14:37 +0100)]
Create grub2-common package containing files that are common among GRUB
platform packages but that would break GRUB Legacy, or that are too
confusing when coinstalled with GRUB Legacy (closes: #564167).
Colin Watson [Tue, 3 May 2011 17:03:05 +0000 (18:03 +0100)]
* grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
disk; otherwise grub_fs_probe will not fall back to the next
filesystem.
(grub_pxefs_open): Likewise, for consistency.
Reported and tested by: Ezekiel Grave.
Colin Watson [Sun, 24 Apr 2011 20:18:06 +0000 (21:18 +0100)]
Invert how files are split among binary packages: rather than code in
debian/rules to remove files we don't want, add dh_install configuration
to declare the files we do want. This means a little more repetition
for platform-specific programs, but it seems less confusing and easier
to extend.
Colin Watson [Sat, 23 Apr 2011 00:01:18 +0000 (01:01 +0100)]
Don't do a separate build pass for grub-common. It will be identical to
the build for the default platform for the CPU architecture anyway, so
reuse that.
Colin Watson [Fri, 22 Apr 2011 01:14:08 +0000 (02:14 +0100)]
Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
for EFI-AMD64. For the moment, the purpose of this is mainly to
deliver files to debian-installer.
Colin Watson [Thu, 21 Apr 2011 14:17:48 +0000 (15:17 +0100)]
Add "SEE ALSO" sections to most man pages. Fixes Debian bug
#551428.
* docs/man/grub-editenv.h2m (SEE ALSO): New section.
* docs/man/grub-emu.h2m (SEE ALSO): Likewise.
* docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
* docs/man/grub-install.h2m (SEE ALSO): Likewise.
* docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
* docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
* docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
* docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
* docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
* docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
* docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
* docs/man/grub-probe.h2m (SEE ALSO): Likewise.
* docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
* docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
* docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
* docs/man/grub-setup.h2m (SEE ALSO): Likewise.
Colin Watson [Thu, 21 Apr 2011 11:55:46 +0000 (12:55 +0100)]
* New upstream release.
- Ensure uniqueness of RAID array numbers even if some elements have a
name (closes: #609804).
- Remove unnecessary brackets from tr arguments (closes: #612564).
- Add grub-mkrescue info documentation (closes: #612585).
- Avoid generating invalid configuration when something that looks like
a Xen hypervisor is present without any Xen kernels (closes: #612898).
- Fix memory alignment when calling 'linux' multiple times on EFI
(closes: #616638).
- Fix grub-install on amd64 EFI systems (closes: #617388).
- Automatically export pager variable (closes: #612995).
- Fix parser error with "time" (closes: #612991).
- Ignore case of bitmap extensions (closes: #611123).
- Skip vmlinux-* on x86 platforms (closes: #536846, #546008).
- Accept old-style Xen kernels (closes: #610428).
- Skip damaged LVM volumes (closes: #544731).
- Handle LVM mirroring (closes: #598441).
- Detect spares and report them as not RAID members (closes: #611561).
- Don't enable localisation unless gfxterm is available (closes:
#604609).
- Fix partitioned RAID support (closes: #595071, #613444).
- Dynamically count the number of lines for the lower banner (closes:
#606494).
- Improve quoting in grub-mkconfig, to support background image file
names containing spaces (closes: #612417).
- Flush BIOS disk devices more accurately (closes: #623124).
* Update branch_embed-sectors.patch:
- Detect sector used by HighPoint RAID controller (closes: #394868).
Colin Watson [Thu, 21 Apr 2011 09:26:29 +0000 (10:26 +0100)]
* grub-core/kern/emu/getroot.c
(grub_find_root_device_from_mountinfo): Remove non-virtual-device
test that was incorrectly reintroduced in r3214.
Reported by: Ian Dall. Fixes Savannah bug #33133.
Colin Watson [Thu, 21 Apr 2011 09:12:37 +0000 (10:12 +0100)]
Set PACKAGE_VERSION and PACKAGE_STRING using configure arguments rather
than sedding configure.ac in debian/rules (which sometimes has annoying
interactions with quilt, etc.).
Colin Watson [Wed, 20 Apr 2011 23:07:22 +0000 (00:07 +0100)]
Fix stack pointer handling in 16-bit relocator.
* grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
Fixes Ubuntu bug #683904.
* grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
New function.
(grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
* include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
* util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
Take into account the decorations the computing menu entry width.
* grub-core/gfxmenu/widget-box.c (get_border_width): New function.
(grub_gfxmenu_create_box): Register get_border_width.
* grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
if available.
* include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
get_border_width.