]>
git.proxmox.com Git - grub2.git/log
Vladimir Serbinenko [Wed, 11 Dec 2013 16:06:00 +0000 (17:06 +0100)]
* grub-core/normal/charset.c: Fix premature line wrap and crash.
Crash happened only in some cases like a string starting at the
half of the screen of same length.
Vladimir Serbinenko [Wed, 11 Dec 2013 15:16:21 +0000 (16:16 +0100)]
* include/grub/efiemu/efiemu.h: Sync configuration table declaration
with EFI counterpart.
Vladimir Serbinenko [Wed, 11 Dec 2013 15:11:17 +0000 (16:11 +0100)]
Propagate the EFI commits to x86-efi specific parts.
Vladimir Serbinenko [Wed, 11 Dec 2013 14:59:12 +0000 (15:59 +0100)]
* grub-core/commands/efi/lssal.c: Fix terminating condition.
Vladimir Serbinenko [Wed, 11 Dec 2013 14:57:08 +0000 (15:57 +0100)]
Introduce grub_efi_packed_guid and use it where alignment is not
guaranteed.
Vladimir Serbinenko [Wed, 11 Dec 2013 14:54:01 +0000 (15:54 +0100)]
* include/grub/efi/api.h (grub_efi_device_path): Define length as
unaligned u16 rather than u8[2].
Vladimir Serbinenko [Wed, 11 Dec 2013 10:29:35 +0000 (11:29 +0100)]
* grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
for relocation range.
Vladimir Serbinenko [Wed, 11 Dec 2013 10:28:48 +0000 (11:28 +0100)]
* grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
non-function pcrel21b relocation. It happens with .text.unlikely
section.
Leif Lindholm [Tue, 10 Dec 2013 12:24:57 +0000 (12:24 +0000)]
efi: mm: make MAX_USABLE_ADDRESS platform-specific
Leif Lindholm [Tue, 10 Dec 2013 16:46:46 +0000 (16:46 +0000)]
* grub-core/lib/fdt.c: change memcpy => grub_memcpy
Vladimir Serbinenko [Tue, 10 Dec 2013 08:24:37 +0000 (09:24 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/grub
Andrey Borzenkov [Tue, 10 Dec 2013 05:55:27 +0000 (09:55 +0400)]
always define config_directory and config_file as full pathname
If configfile is relative pathname, extend it with current ($root) so its
interpretation does not change if $root is changed later.
Suggested by Vladimir Serbienko.
Jon McCune [Tue, 10 Dec 2013 00:52:12 +0000 (16:52 -0800)]
Add --no-rs-codes flag to optionally disable reed-solomon codes in grub-install and grub-bios-setup for x86 BIOS targets.
Vladimir Serbinenko [Mon, 9 Dec 2013 23:05:28 +0000 (00:05 +0100)]
Add missing compile and link options for sparc64-emu.
Vladimir Serbinenko [Mon, 9 Dec 2013 23:01:27 +0000 (00:01 +0100)]
Implement sparc64 trampolines (needed for sparc64-emu).
Vladimir Serbinenko [Mon, 9 Dec 2013 14:51:12 +0000 (15:51 +0100)]
* grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
range of R_SPARC_HI22.
Implement R_SPARC_LM22.
Vladimir Serbinenko [Mon, 9 Dec 2013 14:43:27 +0000 (15:43 +0100)]
* grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
Do not explicitly check for symbol table as it's already checked in
platform-independent layer.
Vladimir Serbinenko [Mon, 9 Dec 2013 13:24:56 +0000 (14:24 +0100)]
* grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
on ia64 as __clear_cache is a dummy on ia64.
Vladimir Serbinenko [Mon, 9 Dec 2013 13:22:31 +0000 (14:22 +0100)]
* grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
Do not explicitly check for symbol table as it's already checked in
platform-independent layer.
Colin Watson [Mon, 9 Dec 2013 00:14:59 +0000 (00:14 +0000)]
* util/grub-mkconfig.in: Add missing newline to output.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:27:40 +0000 (18:27 +0100)]
* grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
* grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:21:10 +0000 (18:21 +0100)]
* grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
compilation with GCC <= 4.2.
* grub-core/kern/emu/argp_common.c: Likewise.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:19:42 +0000 (18:19 +0100)]
* include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
right platform rather than leaking to sparc64-emu.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:16:32 +0000 (18:16 +0100)]
* grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
But ensure that the variables in question are indeed unsigned.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:14:32 +0000 (18:14 +0100)]
* grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:12:20 +0000 (18:12 +0100)]
Remove grub_memalign on emu.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:10:05 +0000 (18:10 +0100)]
* grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
truncate incomplete lines but instead flushes them.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:07:41 +0000 (18:07 +0100)]
Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
and implement windows variant.
Vladimir Serbinenko [Sun, 8 Dec 2013 16:49:02 +0000 (17:49 +0100)]
Fix mips-emu compilation.
Vladimir Serbinenko [Sun, 8 Dec 2013 09:50:59 +0000 (10:50 +0100)]
* configure.ac: Check for freetype library usability.
Vladimir Serbinenko [Sun, 8 Dec 2013 01:59:21 +0000 (02:59 +0100)]
Make arm-emu work.
Vladimir Serbinenko [Sat, 7 Dec 2013 22:28:20 +0000 (23:28 +0100)]
* util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
Andrey Borzenkov [Sat, 7 Dec 2013 20:00:26 +0000 (00:00 +0400)]
Update color_normal and color_highlight defaults (light-gray instead of white)
Andrey Borzenkov [Sat, 7 Dec 2013 16:00:48 +0000 (20:00 +0400)]
use light-gray as default color in normal.mod for consistency
Defalut font color on PC console seems to be light-gray; this is
what user also gets in rescue prompt and what is defined as
GRUB_TERM_DEFAULT_NORMAL_COLOR. But normal.mod defaults to white.
This makes unpleasant visual effect as colors are changed after kernel
is booted.
Use the same color eveywhere for consistency and default to light-gray
as this is also what at least Linux kernel is using by default.
Vladimir Serbinenko [Sat, 7 Dec 2013 15:18:22 +0000 (16:18 +0100)]
Transform -C option to grub-mkstandalone to --core-compress available
in all grub-install flavours.
Vladimir Serbinenko [Sat, 7 Dec 2013 15:09:39 +0000 (16:09 +0100)]
Merge GRUBFS and GRUB_FS variables.
Andrey Borzenkov [Sat, 7 Dec 2013 14:58:19 +0000 (18:58 +0400)]
second attempt to fix using grub device name as install device
grub-install already resolved passed install device to grub device. So do the
same as grub-setup and strip parenthesis if we get legacy (hdX).
I accidentally commited revert of
69ca97c820a623f85baf2db1627e19bef9c24e44 and
this patch as part of
f585c905054b8c74e6e0a67341e84accfb816912 . So this commit
just adds ChangeLog entry and cosmetic whitespace fix.
Andrey Borzenkov [Sat, 7 Dec 2013 11:00:37 +0000 (15:00 +0400)]
fix partition module names when /boot is on diskfilter
/usr/local/grub2/sbin/grub-install: info: grub-mkimage --directory '/usr/local/grub2/lib/grub/i386-pc' --prefix '(mduuid/
e6d1dcf06cea72140bafae74a8677f36 )/grub' --output '/boot/grub/i386-pc/core.img' --format 'i386-pc' --compression 'auto' 'ext2' 'msdos' 'msdos' 'diskfilter' 'mdraid1x' 'biosdisk'
.
/usr/local/grub2/sbin/grub-install: error: cannot open `/usr/local/grub2/lib/grub/i386-pc/msdos.mod': No such file or directory.
Introduce common helper for both diskfilter and non-diskfilter case that
converts partition map names into module names.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:47:19 +0000 (11:47 +0100)]
* configure.ac: Make unifont mandatory on coreboot.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:46:46 +0000 (11:46 +0100)]
* configure.ac: Skip unifont 6.3 pcf and bdf.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:39:35 +0000 (11:39 +0100)]
* Makefile.am: Remove partial font files if generation failed.
Andrey Borzenkov [Sat, 7 Dec 2013 10:29:00 +0000 (14:29 +0400)]
add grub_qsort_strcmp to use when sorting array of strings
Compare function used in qsort gets arguments by reference, so strcmp
cannot be used directly - it expects pointer to char, but gets pointer
to pointer to char.
Introduce new helper grub_qsort_strcmp and use it in grub-install.
This helper is going to be used in a couple more places as well so
add it to global file, not in grub-install.c.
Andrey Borzenkov [Sat, 7 Dec 2013 10:24:25 +0000 (14:24 +0400)]
fix use of grub-probe instead of ${grub_probe}
Vladimir Serbinenko [Fri, 6 Dec 2013 10:58:17 +0000 (11:58 +0100)]
Don't add -mlong-calls when compiling with clang.
Vladimir Serbinenko [Fri, 6 Dec 2013 09:02:24 +0000 (10:02 +0100)]
* configure.ac: Fix a typo.
Vladimir Serbinenko [Fri, 6 Dec 2013 08:18:55 +0000 (09:18 +0100)]
Revamp relocation handling.
Move more code to common dl.c. Add missing veneers for arm and arm64.
Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
Vladimir Serbinenko [Thu, 5 Dec 2013 22:07:10 +0000 (23:07 +0100)]
* util/grub-mkimagexx.c: Fix reloc section generation for ia64.
Mike Gilbert [Wed, 4 Dec 2013 15:24:21 +0000 (10:24 -0500)]
gentpl.py: Use python3-style print function
Vladimir Serbinenko [Thu, 5 Dec 2013 16:05:21 +0000 (17:05 +0100)]
* util/grub-install.c: Mention Boot* variable.
Colin Watson [Thu, 5 Dec 2013 15:48:27 +0000 (15:48 +0000)]
Pacify compiler warning
* grub-core/osdep/linux/hostdisk.c
(grub_util_find_partition_start_os): Initialise start to avoid
spurious compiler warning.
Colin Watson [Thu, 5 Dec 2013 13:51:52 +0000 (13:51 +0000)]
On Linux, read partition start offsets from sysfs if possible
This lets us cope with block device drivers that don't implement
HDIO_GETGEO. Fixes Ubuntu bug #
1237519 .
* grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
function.
(sysfs_partition_start): Likewise.
(grub_util_find_partition_start_os): Try sysfs_partition_start
before HDIO_GETGEO.
Leif Lindholm [Wed, 4 Dec 2013 12:59:21 +0000 (12:59 +0000)]
grub-core/lib/fdt.c: correctly update size_dt_struct in add_subnode()
Vladimir Serbinenko [Wed, 4 Dec 2013 19:05:24 +0000 (20:05 +0100)]
Handle unaligned .bss on sparc64.
Current code improperly assumes that both __bss_start and _end are
aligned to 8-bytes. Eliminating this assumption and explicitly align
modules.
Vladimir Serbinenko [Wed, 4 Dec 2013 18:54:37 +0000 (19:54 +0100)]
* grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
so it doesn't land in the middle of loaded image.
Vladimir Serbinenko [Wed, 4 Dec 2013 13:53:25 +0000 (14:53 +0100)]
* configure.ac: Move all warning options that may be absent in
gcc >= 3.1 to optional.
Note: while this allows to compile with older GCC, official requirements
remain the same and no support for older GCC.
Colin Watson [Wed, 4 Dec 2013 13:35:39 +0000 (13:35 +0000)]
Fix grub-shell to avoid breaking "make distcheck"
Copying the themes directory in grub-shell isn't
parallel-test-friendly and breaks on the second test when the source
directory is read-only (as in "make distcheck"). Instead, add a
hidden --themes-directory option to grub-mkrescue et al, and use it
in grub-shell.
Vladimir Serbinenko [Wed, 4 Dec 2013 13:32:04 +0000 (14:32 +0100)]
* conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
as it's no longer necessarry.
Vladimir Serbinenko [Wed, 4 Dec 2013 11:42:09 +0000 (12:42 +0100)]
* configure.ac: Allow compilation with older GCC for ARM.
Vladimir Serbinenko [Wed, 4 Dec 2013 11:20:56 +0000 (12:20 +0100)]
* configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
* INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
ppc.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:28:23 +0000 (10:28 +0100)]
* grub-core/kern/emu/main.c: Ignore missing prototype for main.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:25:53 +0000 (10:25 +0100)]
Pass font config to config.h and not by TARGET_CFLAGS as adding
arguments doesn't work if TARGET_CFLAGS is specified on command
line.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:08:57 +0000 (10:08 +0100)]
* configure.ac: Add -Wvla if compiler supports it.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:05:33 +0000 (10:05 +0100)]
* grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
Remove variable length arrays.
* grub-core/term/efi/console.c (grub_console_putchar): Likewise.
Vladimir Serbinenko [Wed, 4 Dec 2013 08:48:36 +0000 (09:48 +0100)]
* grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:42:35 +0000 (08:42 +0100)]
* include/grub/types.h: Declare all byteswaps as inline functions
except compile-time ones.
Solves variable shadowing in constructions like
cpu_to_le (le_to_cpu(x) + 1).
Vladimir Serbinenko [Wed, 4 Dec 2013 07:39:22 +0000 (08:39 +0100)]
* grub-core/kern/efi/efi.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:26:13 +0000 (08:26 +0100)]
* grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
minutes.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:10:01 +0000 (08:10 +0100)]
* grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
* grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
Colin Watson [Tue, 3 Dec 2013 18:11:18 +0000 (18:11 +0000)]
* grub-core/Makefile.core.def (setjmp): Distribute
lib/arm64/setjmp.S.
Colin Watson [Tue, 3 Dec 2013 16:15:45 +0000 (16:15 +0000)]
Merge branch 'cjwatson/timeout-style'
Colin Watson [Tue, 3 Dec 2013 16:14:01 +0000 (16:14 +0000)]
Credit and bug reference.
Colin Watson [Tue, 3 Dec 2013 16:11:00 +0000 (16:11 +0000)]
Reduce nesting level.
Vladimir Serbinenko [Mon, 2 Dec 2013 05:51:13 +0000 (06:51 +0100)]
* util/config.c: Add missing pointer adjustment.
Reported by: qwertial
Andrey Borzenkov [Sat, 30 Nov 2013 18:36:10 +0000 (22:36 +0400)]
fix libgrub.pp build post arm64 merge
grub-core/kern/arm64/dl_helper.c:26:28: fatal error: grub/cpu/reloc.h: No such file or directory
Vladimir Serbinenko [Sat, 30 Nov 2013 15:51:35 +0000 (16:51 +0100)]
Missing ChangeLog entry
Leif Lindholm [Sat, 30 Nov 2013 15:49:05 +0000 (16:49 +0100)]
New port arm64-efi
Andrey Borzenkov [Sat, 30 Nov 2013 10:57:11 +0000 (14:57 +0400)]
document sleep command exit codes
Vladimir Serbinenko [Sat, 30 Nov 2013 10:31:14 +0000 (11:31 +0100)]
Ensure that -mno-unaligned-access or some equivalent option is used.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:19:06 +0000 (11:19 +0100)]
* grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
-march=armv3.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:14:30 +0000 (11:14 +0100)]
Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
Colin Watson [Fri, 29 Nov 2013 17:19:37 +0000 (17:19 +0000)]
Remove a few references to GRUB_HIDDEN_TIMEOUT*
Reported by Andrey Borzenkov.
Colin Watson [Fri, 29 Nov 2013 16:11:53 +0000 (16:11 +0000)]
Consolidate timeout generation code a bit.
Colin Watson [Fri, 29 Nov 2013 15:30:44 +0000 (15:30 +0000)]
Consistently ignore GRUB_TIMEOUT if GRUB_HIDDEN_TIMEOUT is set
Pointed out by Vladimir Serbinenko.
Colin Watson [Fri, 29 Nov 2013 15:25:43 +0000 (15:25 +0000)]
Fix documentation of behaviour after pressing ESC
Pointed out by Andrey Borzenkov.
Colin Watson [Fri, 29 Nov 2013 15:18:05 +0000 (15:18 +0000)]
Add GRUB_TIMEOUT_STYLE_BUTTON support
Suggested by Vladimir Serbinenko.
Colin Watson [Fri, 29 Nov 2013 14:59:25 +0000 (14:59 +0000)]
Move deprecated grub-mkconfig options to a separate table
Suggested by Andrey Borzenkov.
Colin Watson [Fri, 29 Nov 2013 13:48:23 +0000 (13:48 +0000)]
Fix "make -C docs dvi"
* docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
builds, since we don't have an EPS version of font_char_metrics.png.
Add leading dot to image extension per the Texinfo documentation.
Colin Watson [Fri, 29 Nov 2013 12:19:36 +0000 (12:19 +0000)]
Fix build with FreeType 2.5.1
* util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
<freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
* util/grub-gen-widthspec.c: Likewise.
* util/grub-mkfont.c: Likewise.
Andrey Borzenkov [Fri, 29 Nov 2013 07:32:34 +0000 (11:32 +0400)]
fix using grub device name as install device
Shell version of grub-install called grub-setup which resolved
install device name and called main setup routine. C version of
grub-install calls main setup routine directly, which leads
to the error:
grub2-install: info: grub-bios-setup --verbose --force --skip-fs-probe --directory='/boot/grub2/i386-pc' --device-map='/boot/grub2/device.map' '(hd2)'.
grub2-install: info: reading /boot/grub2/i386-pc/boot.img.
grub2-install: info: reading /boot/grub2/i386-pc/core.img.
grub2-install: info: root is `(null)', dest is `(hd2)'.
grub2-install: info: Opening dest.
grub2-install: info: drive = -1.
grub2-install: error: disk `(hd2)' not found.
Move resolving of destination device name into main setup routine
so it is done consistently in both cases.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:52:20 +0000 (05:52 +0100)]
* grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:50:32 +0000 (05:50 +0100)]
* util/grub-fstest.c: Remove variable length arrays.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:46:19 +0000 (05:46 +0100)]
* grub-core/osdep/linux/ofpath.c: Check return value of read.
Vladimir Serbinenko [Fri, 29 Nov 2013 03:14:26 +0000 (04:14 +0100)]
* util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
computing crc32 rather than handling with md fundtions directly.
Vladimir Serbinenko [Fri, 29 Nov 2013 03:05:44 +0000 (04:05 +0100)]
* util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
checking fwstart.img rather than md fundtions directly.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:54:21 +0000 (03:54 +0100)]
* util/grub-mkrescue.c (main): Check that fread succeeded.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:45:50 +0000 (03:45 +0100)]
* conf/Makefile.common: Remove -mexplicit-relocs and -DUSE_ASCII_FALLBACK on yeeloong.
-DUSE_ASCII_FALLBACK is already added by font snippets.
-mexplicit-relocs isn't needed is compiler/assemblera are
configured properly.
If they're not we shouldn't attempt to fix it by ourselves.
Binary compare between before and after shows no difference.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:36:50 +0000 (03:36 +0100)]
Remove libgnulib.a and use its sources in dependencies directly.
This was the only instance of "library" in core config. A bug was
reported that -fno-stack-protector wasn't passed to it. Instead of
figuring out why it failed just remove this construction used
needlessly.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:32:57 +0000 (03:32 +0100)]
* grub-core/osdep/unix/password.c (grub_password_get): Check that
fgets succeeded.
Francesco Lavra [Thu, 28 Nov 2013 13:25:52 +0000 (17:25 +0400)]
Fix command description in case of a device name passed as argument.
Colin Watson [Thu, 28 Nov 2013 11:01:53 +0000 (11:01 +0000)]
Fix documentation of timeout expiry.