]> git.proxmox.com Git - grub2.git/log
grub2.git
10 years agoAdd --no-rs-codes flag to optionally disable reed-solomon codes in grub-install and...
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.

10 years ago Implement sparc64 trampolines (needed for sparc64-emu).
Vladimir Serbinenko [Mon, 9 Dec 2013 23:01:27 +0000 (00:01 +0100)]
Implement sparc64 trampolines (needed for sparc64-emu).

10 years ago * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
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.

10 years ago * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
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.

10 years ago * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
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.

10 years ago * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
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.

10 years ago* util/grub-mkconfig.in: Add missing newline to output.
Colin Watson [Mon, 9 Dec 2013 00:14:59 +0000 (00:14 +0000)]
* util/grub-mkconfig.in: Add missing newline to output.

10 years ago * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
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.

10 years ago * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
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.

10 years ago * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
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.

10 years ago * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
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.

10 years ago * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
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.

10 years ago Remove grub_memalign on emu.
Vladimir Serbinenko [Sun, 8 Dec 2013 17:12:20 +0000 (18:12 +0100)]
Remove grub_memalign on emu.

10 years ago * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
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.

10 years ago Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
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.

10 years ago Fix mips-emu compilation.
Vladimir Serbinenko [Sun, 8 Dec 2013 16:49:02 +0000 (17:49 +0100)]
Fix mips-emu compilation.

10 years ago * configure.ac: Check for freetype library usability.
Vladimir Serbinenko [Sun, 8 Dec 2013 09:50:59 +0000 (10:50 +0100)]
* configure.ac: Check for freetype library usability.

10 years ago Make arm-emu work.
Vladimir Serbinenko [Sun, 8 Dec 2013 01:59:21 +0000 (02:59 +0100)]
Make arm-emu work.

10 years ago * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
Vladimir Serbinenko [Sat, 7 Dec 2013 22:28:20 +0000 (23:28 +0100)]
* util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.

10 years agoUpdate color_normal and color_highlight defaults (light-gray instead of white)
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)

10 years agouse light-gray as default color in normal.mod for consistency
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.

10 years ago Transform -C option to grub-mkstandalone to --core-compress available
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.

10 years ago Merge GRUBFS and GRUB_FS variables.
Vladimir Serbinenko [Sat, 7 Dec 2013 15:09:39 +0000 (16:09 +0100)]
Merge GRUBFS and GRUB_FS variables.

10 years agosecond attempt to fix using grub device name as install device
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.

10 years agofix partition module names when /boot is on diskfilter
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.

10 years ago * configure.ac: Make unifont mandatory on coreboot.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:47:19 +0000 (11:47 +0100)]
* configure.ac: Make unifont mandatory on coreboot.

10 years ago * configure.ac: Skip unifont 6.3 pcf and bdf.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:46:46 +0000 (11:46 +0100)]
* configure.ac: Skip unifont 6.3 pcf and bdf.

10 years ago * Makefile.am: Remove partial font files if generation failed.
Vladimir Serbinenko [Sat, 7 Dec 2013 10:39:35 +0000 (11:39 +0100)]
* Makefile.am: Remove partial font files if generation failed.

10 years agoadd grub_qsort_strcmp to use when sorting array of strings
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.

10 years agofix use of grub-probe instead of ${grub_probe}
Andrey Borzenkov [Sat, 7 Dec 2013 10:24:25 +0000 (14:24 +0400)]
fix use of grub-probe instead of ${grub_probe}

10 years ago Don't add -mlong-calls when compiling with clang.
Vladimir Serbinenko [Fri, 6 Dec 2013 10:58:17 +0000 (11:58 +0100)]
Don't add -mlong-calls when compiling with clang.

10 years ago * configure.ac: Fix a typo.
Vladimir Serbinenko [Fri, 6 Dec 2013 09:02:24 +0000 (10:02 +0100)]
* configure.ac: Fix a typo.

10 years ago Revamp relocation handling.
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)

10 years ago * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
Vladimir Serbinenko [Thu, 5 Dec 2013 22:07:10 +0000 (23:07 +0100)]
* util/grub-mkimagexx.c: Fix reloc section generation for ia64.

10 years agogentpl.py: Use python3-style print function
Mike Gilbert [Wed, 4 Dec 2013 15:24:21 +0000 (10:24 -0500)]
gentpl.py: Use python3-style print function

10 years ago * util/grub-install.c: Mention Boot* variable.
Vladimir Serbinenko [Thu, 5 Dec 2013 16:05:21 +0000 (17:05 +0100)]
* util/grub-install.c: Mention Boot* variable.

10 years agoPacify compiler warning
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.

10 years agoOn Linux, read partition start offsets from sysfs if possible
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.

10 years agogrub-core/lib/fdt.c: correctly update size_dt_struct in add_subnode()
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()

10 years ago Handle unaligned .bss on sparc64.
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.

10 years ago * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
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.

10 years ago * configure.ac: Move all warning options that may be absent in
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.

10 years agoFix grub-shell to avoid breaking "make distcheck"
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.

10 years ago * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
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.

10 years ago * configure.ac: Allow compilation with older GCC for ARM.
Vladimir Serbinenko [Wed, 4 Dec 2013 11:42:09 +0000 (12:42 +0100)]
* configure.ac: Allow compilation with older GCC for ARM.

10 years ago * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
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.

10 years ago * grub-core/kern/emu/main.c: Ignore missing prototype for main.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:28:23 +0000 (10:28 +0100)]
* grub-core/kern/emu/main.c: Ignore missing prototype for main.

10 years ago Pass font config to config.h and not by TARGET_CFLAGS as adding
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.

10 years ago * configure.ac: Add -Wvla if compiler supports it.
Vladimir Serbinenko [Wed, 4 Dec 2013 09:08:57 +0000 (10:08 +0100)]
* configure.ac: Add -Wvla if compiler supports it.

10 years ago * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
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.

10 years ago * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 08:48:36 +0000 (09:48 +0100)]
* grub-core/kern/i386/qemu/init.c: Remove variable length arrays.

10 years ago * include/grub/types.h: Declare all byteswaps as inline functions
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).

10 years ago * grub-core/kern/efi/efi.c: Remove variable length arrays.
Vladimir Serbinenko [Wed, 4 Dec 2013 07:39:22 +0000 (08:39 +0100)]
* grub-core/kern/efi/efi.c: Remove variable length arrays.

10 years ago * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
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.

10 years ago * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
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.

10 years ago* grub-core/Makefile.core.def (setjmp): Distribute
Colin Watson [Tue, 3 Dec 2013 18:11:18 +0000 (18:11 +0000)]
* grub-core/Makefile.core.def (setjmp): Distribute
lib/arm64/setjmp.S.

10 years agoMerge branch 'cjwatson/timeout-style'
Colin Watson [Tue, 3 Dec 2013 16:15:45 +0000 (16:15 +0000)]
Merge branch 'cjwatson/timeout-style'

10 years agoCredit and bug reference.
Colin Watson [Tue, 3 Dec 2013 16:14:01 +0000 (16:14 +0000)]
Credit and bug reference.

10 years agoReduce nesting level.
Colin Watson [Tue, 3 Dec 2013 16:11:00 +0000 (16:11 +0000)]
Reduce nesting level.

10 years ago * util/config.c: Add missing pointer adjustment.
Vladimir Serbinenko [Mon, 2 Dec 2013 05:51:13 +0000 (06:51 +0100)]
* util/config.c: Add missing pointer adjustment.
Reported by: qwertial

10 years agofix libgrub.pp build post arm64 merge
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

10 years agoMissing ChangeLog entry
Vladimir Serbinenko [Sat, 30 Nov 2013 15:51:35 +0000 (16:51 +0100)]
Missing ChangeLog entry

10 years agoNew port arm64-efi
Leif Lindholm [Sat, 30 Nov 2013 15:49:05 +0000 (16:49 +0100)]
New port arm64-efi

10 years agodocument sleep command exit codes
Andrey Borzenkov [Sat, 30 Nov 2013 10:57:11 +0000 (14:57 +0400)]
document sleep command exit codes

10 years ago Ensure that -mno-unaligned-access or some equivalent option is used.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:31:14 +0000 (11:31 +0100)]
Ensure that -mno-unaligned-access or some equivalent option is used.

10 years ago * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
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.

10 years ago Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
Vladimir Serbinenko [Sat, 30 Nov 2013 10:14:30 +0000 (11:14 +0100)]
Remove leftover GRUB_IA64_DL_TRAMP_SIZE.

10 years agoRemove a few references to GRUB_HIDDEN_TIMEOUT*
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.

10 years agoConsolidate timeout generation code a bit.
Colin Watson [Fri, 29 Nov 2013 16:11:53 +0000 (16:11 +0000)]
Consolidate timeout generation code a bit.

10 years agoConsistently ignore GRUB_TIMEOUT if GRUB_HIDDEN_TIMEOUT is set
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.

10 years agoFix documentation of behaviour after pressing ESC
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.

10 years agoAdd GRUB_TIMEOUT_STYLE_BUTTON support
Colin Watson [Fri, 29 Nov 2013 15:18:05 +0000 (15:18 +0000)]
Add GRUB_TIMEOUT_STYLE_BUTTON support

Suggested by Vladimir Serbinenko.

10 years agoMove deprecated grub-mkconfig options to a separate table
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.

10 years agoFix "make -C docs dvi"
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.

10 years agoFix build with FreeType 2.5.1
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.

10 years agofix using grub device name as install device
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.

10 years ago * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
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.

10 years ago * util/grub-fstest.c: 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.

10 years ago * grub-core/osdep/linux/ofpath.c: Check return value of read.
Vladimir Serbinenko [Fri, 29 Nov 2013 04:46:19 +0000 (05:46 +0100)]
* grub-core/osdep/linux/ofpath.c: Check return value of read.

10 years ago * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
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.

10 years ago * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
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.

10 years ago * util/grub-mkrescue.c (main): Check that fread succeeded.
Vladimir Serbinenko [Fri, 29 Nov 2013 02:54:21 +0000 (03:54 +0100)]
* util/grub-mkrescue.c (main): Check that fread succeeded.

10 years ago* conf/Makefile.common: Remove -mexplicit-relocs and -DUSE_ASCII_FALLBACK on yeeloong.
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.

10 years agoRemove libgnulib.a and use its sources in dependencies directly.
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.

10 years ago * grub-core/osdep/unix/password.c (grub_password_get): Check that
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.

10 years agoFix command description in case of a device name passed as argument.
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.

10 years agoFix documentation of timeout expiry.
Colin Watson [Thu, 28 Nov 2013 11:01:53 +0000 (11:01 +0000)]
Fix documentation of timeout expiry.

10 years agoRevamp hidden timeout handling
Colin Watson [Thu, 28 Nov 2013 02:27:13 +0000 (02:27 +0000)]
Revamp hidden timeout handling

Add a new timeout_style environment variable and a corresponding
GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig.  This
controls hidden-timeout handling more simply than the previous
arrangements, and pressing any hotkeys associated with menu entries
during the hidden timeout will now boot the corresponding menu entry
immediately.

GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
generates a warning, and if it shows the menu it will do so as if
the second timeout were not present.  Other combinations are
translated into reasonable equivalents.

10 years ago Eliminate variable length arrays in grub_vsnprintf_real.
Vladimir Serbinenko [Wed, 27 Nov 2013 14:16:09 +0000 (15:16 +0100)]
Eliminate variable length arrays in grub_vsnprintf_real.

A bit tricky because this function has to continue to work without
heap for short strings. Fixing prealloc to 32 arguments is reasonable
but make all stack references use 32-bit offset rather than 8-bit one.
So split va_args preparsing to separate function and put the prealloc
into the caller.

10 years ago Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
Vladimir Serbinenko [Wed, 27 Nov 2013 13:13:50 +0000 (14:13 +0100)]
Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
Fixes build for windows.

10 years ago * gentpl.py: Don't generate platform-dependent conditionals for
Vladimir Serbinenko [Wed, 27 Nov 2013 13:06:14 +0000 (14:06 +0100)]
* gentpl.py: Don't generate platform-dependent conditionals for
platform-independent targets.

10 years ago* grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
Colin Watson [Wed, 27 Nov 2013 11:22:31 +0000 (11:22 +0000)]
* grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
references to mdadm from otherwise generic code.
(grub_util_exec_pipe): Likewise.
(grub_util_exec_pipe_stderr): Likewise.
* grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
This function calls vgs, not mdadm; adjust variable names
accordingly.

10 years agoMerge branch 'new-autogen'
Colin Watson [Wed, 27 Nov 2013 10:57:27 +0000 (10:57 +0000)]
Merge branch 'new-autogen'

10 years agoSpeed up test suite by avoiding fsync
Colin Watson [Wed, 27 Nov 2013 10:06:07 +0000 (10:06 +0000)]
Speed up test suite by avoiding fsync

Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls into
no-ops, and use it in programs that copy files but do not need to take
special care to sync writes (grub-mknetdir, grub-rescue,
grub-mkstandalone).

On my laptop, this reduces partmap_test's runtime from 1236 seconds to
204 seconds.

10 years ago* tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
Colin Watson [Tue, 26 Nov 2013 23:51:48 +0000 (23:51 +0000)]
* tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
than hardcoding /usr/local/bin/xorriso.

10 years agoHandle #if/#endif and C-style comments in AutoGen definitions files.
Colin Watson [Tue, 26 Nov 2013 17:48:20 +0000 (17:48 +0000)]
Handle #if/#endif and C-style comments in AutoGen definitions files.

10 years agoShow file name in error messages from AutogenParser.
Colin Watson [Tue, 26 Nov 2013 17:42:56 +0000 (17:42 +0000)]
Show file name in error messages from AutogenParser.

10 years agoGenerate Makefile.*.am directly from gentpl.py, eliminating the use of Autogen. ...
Colin Watson [Wed, 13 Nov 2013 12:42:24 +0000 (12:42 +0000)]
Generate Makefile.*.am directly from gentpl.py, eliminating the use of Autogen.  The Autogen definitions files remain intact as they offer a useful abstraction.

10 years ago Add PCI command activation to all PCI drivers as required for coreboot
Vladimir Serbinenko [Tue, 26 Nov 2013 13:21:11 +0000 (14:21 +0100)]
Add PCI command activation to all PCI drivers as required for coreboot
and maybe some other firmwares.

10 years ago * grub-core/Makefile.am: Reduce gratuituous differences between Apple
Vladimir Serbinenko [Tue, 26 Nov 2013 10:38:12 +0000 (11:38 +0100)]
* grub-core/Makefile.am: Reduce gratuituous differences between Apple
and non-Apple variants of efiemu compile.