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 [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 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: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.).
* 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.
Identify RAID by its UUID rather than (guessed) name.
* grub-core/disk/raid.c (ascii2hex): New function.
(grub_raid_open): Accept mduuid/%s specification.
* grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
(get_mdadm_uuid): ... this.
(grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
Colin Watson [Wed, 13 Apr 2011 11:36:04 +0000 (12:36 +0100)]
Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
move-mounts appearing out of order. Fixes Ubuntu bug #738345.
* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Build a list of relevant visible mounts using the mnt_id and
parent_mnt_id fields, and then scan that list at the end.
Implement automatic module license checking according to new GNU
guidelines.
* grub-core/kern/dl.c (grub_dl_check_license): New function.
(grub_dl_load_core): Use grub_dl_check_license.
* include/grub/dl.h (GRUB_MOD_SECTION): New macro.
(GRUB_MOD_LICENSE): Likewise.
(GRUB_MOD_DUAL_LICENSE): Likewise.
All modules updated.
Colin Watson [Mon, 11 Apr 2011 15:06:37 +0000 (16:06 +0100)]
* grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
reserved_first_sector to 1. btrfs reserves plenty of space for boot
loaders.
Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
Colin Watson [Mon, 11 Apr 2011 13:47:10 +0000 (14:47 +0100)]
* Update branch_butter.patch:
- Fix filename comparison.
- Take extent offset in account on uncompressed extents.
- Use filled extent size if available.
Colin Watson [Sun, 10 Apr 2011 20:47:56 +0000 (21:47 +0100)]
* Update branch_fuse.patch:
- Make grub-mount exit non-zero if opening the device or filesystem
fails.
- Translate GRUB error codes into OS error codes for FUSE (LP: #756456).
* grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
rather than trying to put initrd way too high.
Reported by: Ryan Lortie <desrt@desrt.ca>
Dynamically count the number of lines for the lower banner.
* grub-core/normal/menu_entry.c (per_term_screen): New member
num_entries.
(print_down): Use num_entries.
(update_screen): Likewise.
(grub_menu_entry_run): Set num_entries.
* grub-core/normal/menu_text.c (menu_viewer_data): New member
num_entries.
(grub_print_message_indented): Move real part to ...
(grub_print_message_indented_real): ... here. Additional argument
dry_run.
(draw_border): Additional argument num_entries.
(print_message): Additional argument dry_run.
(print_entries): Receive menu viewer data.
(grub_menu_init_page): New argment num_entries.
(menu_text_set_chosen_entry): Use num_entries.
(grub_menu_try_text): Likewise.
* grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
All users updated.
(grub_ucs4_count_lines): New function.
* include/grub/term.h (grub_term_cursor_x): Moved from here ..
* grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
* include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
(grub_term_border_height): Likewise.
(grub_term_num_entries): Likewise.
* include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
const.
* util/grub-setup.c (main): Reuse md device name if available.
* util/raid.c (grub_util_raid_getmembers): Receive device name and
not GRUB name as argument.
Based on patch by: Florian Wagner <fwagner>.