]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years ago* grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
Colin Watson [Wed, 24 Nov 2010 12:07:14 +0000 (12:07 +0000)]
* grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
platforms.
(grub-emu-lite): Remove kern/emu/cache.S.

13 years ago* util/deviceiter.c (compare_devices): If the by-id link for a
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.

13 years ago* Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
Colin Watson [Tue, 23 Nov 2010 15:56:18 +0000 (15:56 +0000)]
* Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
ldflags, to fix link line ordering.

13 years ago* grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
Colin Watson [Tue, 23 Nov 2010 13:00:05 +0000 (13:00 +0000)]
* grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
linkers are picky about this.

13 years ago* grub-core/Makefile.am (command.lst): Adjust sed expression
Colin Watson [Tue, 23 Nov 2010 12:52:40 +0000 (12:52 +0000)]
* grub-core/Makefile.am (command.lst): Adjust sed expression
ordering so that extended and priority commands aren't treated as
ordinary commands.

13 years ago* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
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.

13 years agoFix test program build on GNU/kFreeBSD.
Colin Watson [Mon, 22 Nov 2010 18:22:50 +0000 (18:22 +0000)]
Fix test program build on GNU/kFreeBSD.

* Makefile.util.def (example_unit_test): Add `$(LIBZFS)
$(LIBNVPAIR)' library dependencies.

13 years agousual e-mail address
Colin Watson [Mon, 22 Nov 2010 18:22:00 +0000 (18:22 +0000)]
usual e-mail address

13 years ago* util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
Colin Watson [Mon, 22 Nov 2010 13:57:16 +0000 (13:57 +0000)]
* util/grub-install.in: Fix parsing of --grub-mkrelpath= option.

13 years ago* util/grub-install.in: Remove excessive quoting that broke
Colin Watson [Mon, 22 Nov 2010 12:20:57 +0000 (12:20 +0000)]
* util/grub-install.in: Remove excessive quoting that broke
installations to RAID devices.

13 years ago * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:58:06 +0000 (22:58 +0100)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
bootloader version instead of 0.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:52:27 +0000 (22:52 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
warning.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
Vladimir 'phcoder' Serbinenko [Fri, 19 Nov 2010 21:48:26 +0000 (22:48 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
retrieve the metadat sector if size isn't known.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.

13 years ago2010-11-18 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 18 Nov 2010 15:52:27 +0000 (16:52 +0100)]
2010-11-18  Robert Millan  <rmh@gnu.org>

* grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
with grub_memcmp().

13 years ago * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
Vladimir 'phcoder' Serbinenko [Thu, 18 Nov 2010 01:08:01 +0000 (02:08 +0100)]
* grub-core/normal/menu_entry.c (print_up): Fix displacement of up
arrow.
Reported by: Jordan Uggla.

13 years ago Make better UTF compliant.
Vladimir 'phcoder' Serbinenko [Wed, 17 Nov 2010 15:13:16 +0000 (16:13 +0100)]
Make better UTF compliant.

* grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
sequences as incorrect.
(grub_is_valid_utf8): Likewise.
(grub_utf8_to_ucs4): Likewise.
(grub_ucs4_to_utf8): Handle codepoints outside of BMP.
(grub_ucs4_to_utf8_alloc): Likewise.
* include/grub/charset.h (grub_utf16_to_utf8): Likewise.

13 years ago Make legacy_source behave like source.
Vladimir 'phcoder' Serbinenko [Wed, 17 Nov 2010 07:41:18 +0000 (08:41 +0100)]
Make legacy_source behave like source.

* grub-core/commands/legacycfg.c (legacy_file): Don't call
grub_show_menu.
(grub_cmd_legacy_source): Call grub_show_menu if needed.

13 years ago* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
Colin Watson [Tue, 16 Nov 2010 15:54:18 +0000 (15:54 +0000)]
* conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
(-Wunused implies -Wunused-parameter, but not vice versa).

13 years ago* configure.ac: Make error messages less confusing by testing for
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).

13 years ago * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
Vladimir 'phcoder' Serbinenko [Mon, 15 Nov 2010 09:01:11 +0000 (10:01 +0100)]
* grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
(now unused).
(grub_keyboard_controller_init)
[GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
read the initial state since controller isn't inited yet.

13 years ago * grub-core/lib/relocator.c (malloc_in_range): Take into account that
Vladimir 'phcoder' Serbinenko [Mon, 15 Nov 2010 08:50:58 +0000 (09:50 +0100)]
* grub-core/lib/relocator.c (malloc_in_range): Take into account that
allocate_regbeg may need to create new chunk header.

13 years ago Fix quoting in legacy parser.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 23:33:28 +0000 (00:33 +0100)]
Fix quoting in legacy parser.

* grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
single quotes.
(grub_legacy_parse): Likewise.
Reported by: Jordan Uggla.
Tested by: Jordan Uggla.

13 years ago Don't add -lgcc on i386 and x86_64.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 22:36:20 +0000 (23:36 +0100)]
Don't add -lgcc on i386 and x86_64.

* configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
* conf/Makefile.common (LDADD_KERNEL): Likewise.
* grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.

13 years ago * configure.ac: Add -Wno-trampolines when supported.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 16:13:44 +0000 (17:13 +0100)]
* configure.ac: Add -Wno-trampolines when supported.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
Modestas Vainius [Sun, 14 Nov 2010 16:09:13 +0000 (17:09 +0100)]
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
fakeraid.

13 years ago Add generic logical block size support for UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 16:03:49 +0000 (17:03 +0100)]
Add generic logical block size support for UDF.

* 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.

13 years ago Add generic logical block size support for UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:58:50 +0000 (16:58 +0100)]
Add generic logical block size support for UDF.

* 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.

13 years ago Properly handle deleted files on UDF.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:51:45 +0000 (16:51 +0100)]
Properly handle deleted files on UDF.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
set.

13 years ago Support reading files larger than 2 GiB.
Giuseppe Caizzone [Sun, 14 Nov 2010 15:48:17 +0000 (16:48 +0100)]
Support reading files larger than 2 GiB.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
"offset" to grub_off_t.
(grub_udf_read_file): Likewise for parameter "pos".

13 years ago * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 15:25:28 +0000 (16:25 +0100)]
* docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
unavailable.
(Simple configuration): Refer to Changes from GRUB Legacy about
save_env availability.

13 years ago * util/grub-install.in: Ignore empty partition table detection
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 15:15:41 +0000 (16:15 +0100)]
* util/grub-install.in: Ignore empty partition table detection
instead of trying to include part_ module.

13 years ago * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 13:13:11 +0000 (14:13 +0100)]
* grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
LVM on RAID support.

13 years ago Properly define WORDS_BIGENDIAN in wrapped environments.
Vladimir 'phcoder' Serbinenko [Sun, 14 Nov 2010 12:37:59 +0000 (13:37 +0100)]
Properly define WORDS_BIGENDIAN in wrapped environments.

* grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
definition.
* grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.

Reported by: Manoel Rebelo Abranches.
Tested by: Manoel Rebelo Abranches.

13 years ago * util/grub-mkconfig.in: Fix quoting.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:27:29 +0000 (16:27 +0100)]
* util/grub-mkconfig.in: Fix quoting.

13 years ago Support big ext2 files.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:11:24 +0000 (16:11 +0100)]
Support big ext2 files.

* grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
(grub_ext2_read_block): Support triple indirect blocks.
(grub_ext2_read_file): Use 64-bit types and read size_high.
(grub_ext2_open): Read size_high.
Reported by: Ximin Luo.
Tested by: Manoel Rebelo Abranches.

13 years ago * util/grub-install.in: Handle filenames containing spaces.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:03:29 +0000 (16:03 +0100)]
* util/grub-install.in: Handle filenames containing spaces.
Reported by: Jordan Uggla.
Tested by: Jordan Uggla.

13 years ago * util/grub-mkconfig.in (grub_script_check): New variable.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 15:00:39 +0000 (16:00 +0100)]
* util/grub-mkconfig.in (grub_script_check): New variable.
Use grub_script_check instead of grub-script-check.
Reported by: Barry Jackson.

13 years ago * docs/grub.texi (menu): Correct the order.
Vladimir 'phcoder' Serbinenko [Sat, 13 Nov 2010 14:56:23 +0000 (15:56 +0100)]
* docs/grub.texi (menu): Correct the order.
Reported by: D. Hugh Redelmeier.

13 years ago * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
Vladimir 'phcoder' Serbinenko [Fri, 12 Nov 2010 07:45:16 +0000 (08:45 +0100)]
* grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
jump.

13 years ago2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
Manoel Rebelo Abranches [Mon, 8 Nov 2010 13:14:54 +0000 (11:14 -0200)]
2010-11-08  Manoel Rebelo Abranches <mrabran@br.ibm.com>

        * include/grub/elfload.h (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * kern/elf.c (grub_elf32_size): New parameter. All users updated.
        Return maximum segments alignment.
        (grub_elf64_size): Likewise.
        * grub-core/loader/powerpc/ieee1275/linux.c:
        (grub_linux_claimmap_iterate): New function. Uses the "available"property
        in the "memory" node for memory allocation for kernel in the PowerPC loader.
        (grub_linux_load32): Correctly find linux entry point offset.
        (grub_linux_load64): Likewise.

13 years ago2010-11-07 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 7 Nov 2010 15:29:10 +0000 (16:29 +0100)]
2010-11-07  Robert Millan  <rmh@gnu.org>

On mips-yeeloong, build with -march=loongson2f when this flag is
available (GCC >= 4.4).
* conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
`-march=mips3'.
* configure.ac: For mips-yeeloong, add -march=loongson2f if available,
or otherwise add -march=mips3.

13 years ago Suppress shell expansion on echo '*' and echo "*" like cases.
BVK Chaitanya [Sun, 7 Nov 2010 14:52:29 +0000 (20:22 +0530)]
Suppress shell expansion on echo '*' and echo "*" like cases.
Reported by: Jordan Uggla.

* grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
string arguments before shell expansion.
* tests/grub_cmd_echo.in: New testcases.

13 years ago2010-11-07 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 7 Nov 2010 14:10:09 +0000 (15:10 +0100)]
2010-11-07  Robert Millan  <rmh@gnu.org>

* conf/mips-qemu-mips.rmk: Remove stale file from previous
transition.

13 years agomerge with mainline
BVK Chaitanya [Sun, 7 Nov 2010 13:01:41 +0000 (18:31 +0530)]
merge with mainline

13 years agoadd changelog entry
BVK Chaitanya [Sun, 7 Nov 2010 10:48:29 +0000 (16:18 +0530)]
add changelog entry

13 years agosuppress shell expansion inside quoted strings
BVK Chaitanya [Sun, 7 Nov 2010 10:43:14 +0000 (16:13 +0530)]
suppress shell expansion inside quoted strings

13 years ago * grub-core/kern/emu/hostdisk.c
Vladimir 'phcoder' Serbinenko [Sat, 6 Nov 2010 23:10:49 +0000 (00:10 +0100)]
* grub-core/kern/emu/hostdisk.c
(convert_system_partition_to_system_disk): Handle devices like "sdaa1".

13 years ago * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
Vladimir 'phcoder' Serbinenko [Sat, 6 Nov 2010 22:52:56 +0000 (23:52 +0100)]
* include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
* include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
* include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.

13 years ago * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
Vladimir 'phcoder' Serbinenko [Sat, 6 Nov 2010 20:54:24 +0000 (21:54 +0100)]
* grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.

13 years ago * util/grub-install.in: Replace useless recomendation to pass
Vladimir 'phcoder' Serbinenko [Sat, 6 Nov 2010 20:37:13 +0000 (21:37 +0100)]
* util/grub-install.in: Replace useless recomendation to pass
--modules with a recomendation to report a bug.

13 years ago Properly register serial terminfo.
Vladimir 'phcoder' Serbinenko [Sat, 6 Nov 2010 19:40:08 +0000 (20:40 +0100)]
Properly register serial terminfo.
Reported by: Jordan Uggla

* grub-core/term/serial.c (grub_serial_terminfo_input_template): New
const.
(grub_serial_terminfo_output_template): Likewise.
(grub_cmd_serial): Register "serial" with terminfo.
(GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
grub_serial_terminfo_output.

13 years ago2010-11-05 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 5 Nov 2010 21:56:14 +0000 (22:56 +0100)]
2010-11-05  Robert Millan  <rmh@gnu.org>

* util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
needed).

13 years ago2010-11-05 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 5 Nov 2010 18:48:55 +0000 (19:48 +0100)]
2010-11-05  Robert Millan  <rmh@gnu.org>

On Yeeloong, pass machine type information to Linux.

* grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
(LOONGSON_MACHTYPE): New macro, set to
"machtype=lemote-yeeloong-2f-8.9inches".
[LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
additional argument to Linux.

13 years ago2010-11-04 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 4 Nov 2010 12:58:29 +0000 (13:58 +0100)]
2010-11-04  Robert Millan  <rmh@gnu.org>

* util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
(its SATA disks are detected as slaveless IDE master drives on
kFreeBSD).
Reported by Carsten Aulbert.

13 years ago* util/bin2h.c (main): Fix spelling error in generated output.
Colin Watson [Tue, 2 Nov 2010 22:51:51 +0000 (22:51 +0000)]
* util/bin2h.c (main): Fix spelling error in generated output.

13 years agoFix an integer overflow.
Grégoire Sutre [Mon, 1 Nov 2010 22:42:53 +0000 (23:42 +0100)]
Fix an integer overflow.

13 years ago * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 12:10:51 +0000 (13:10 +0100)]
* grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
vga= option is supplied.

13 years ago * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 11:49:40 +0000 (12:49 +0100)]
* util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.

13 years ago * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 11:45:51 +0000 (12:45 +0100)]
* grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
argument as an argument to no-argument option.

13 years ago * util/grub.d/10_linux.in: Add missing load_video with explicit
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 11:36:00 +0000 (12:36 +0100)]
* util/grub.d/10_linux.in: Add missing load_video with explicit
GRUB_GFXPAYLOAD_LINUX.

13 years ago * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 11:29:20 +0000 (12:29 +0100)]
* Makefile.am (libgrub.pp): Propagate the libgrub.a split.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 09:20:58 +0000 (10:20 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
elements with invlid index.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
* grub-core/disk/raid.c (insert_array): Automatically reallocate
members.
* include/grub/raid.h (grub_raid_member): New struct.
(grub_raid_array): Transform devices and start_sector into usage of
grub_raid_member. All users updated
(allocated_devs): New member.

13 years ago * docs/man/grub-set-default.h2m: Clarify that only saved default entry
Vladimir 'phcoder' Serbinenko [Mon, 1 Nov 2010 09:11:44 +0000 (10:11 +0100)]
* docs/man/grub-set-default.h2m: Clarify that only saved default entry
is modified

13 years ago NetBSD build fix for getline function conflict from gnulib.
BVK Chaitanya [Fri, 29 Oct 2010 09:56:16 +0000 (15:26 +0530)]
NetBSD build fix for getline function conflict from gnulib.

* Makefile.util.def (libgrubkern.a): New library for grub kernel
components that depend on gnulib headers.
(libgrubmods.a): Renamed from earlier libgrub.a.
* conf/Makefile.common: Remove gnulib from *_LIBRARY flags.

13 years agomerge with mainline
BVK Chaitanya [Fri, 29 Oct 2010 09:49:30 +0000 (15:19 +0530)]
merge with mainline

13 years agorenamed libemu and libgrub to libgrubkern and libgrubmods respectively
BVK Chaitanya [Fri, 29 Oct 2010 09:14:25 +0000 (14:44 +0530)]
renamed libemu and libgrub to libgrubkern and libgrubmods respectively

13 years ago * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:40:35 +0000 (12:40 +0200)]
* util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
install rather than creating a broken install.

13 years ago * util/grub-setup.c (argp): Remove misleading example of installing to
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:33:57 +0000 (12:33 +0200)]
* util/grub-setup.c (argp): Remove misleading example of installing to
a partition.

13 years ago * util/grub-setup.c (setup): Clarify the error message.
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:31:26 +0000 (12:31 +0200)]
* util/grub-setup.c (setup): Clarify the error message.

13 years ago * include/grub/types.h (grub_target_off_t): Removed no longer used type.
Vladimir 'phcoder' Serbinenko [Tue, 26 Oct 2010 10:29:12 +0000 (12:29 +0200)]
* include/grub/types.h (grub_target_off_t): Removed no longer used type.

13 years ago * grub-core/kern/emu/misc.c
Vladimir 'phcoder' Serbinenko [Sat, 23 Oct 2010 18:39:08 +0000 (20:39 +0200)]
* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root)
[HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.

13 years ago * grub-core/kern/emu/misc.c
Vladimir 'phcoder' Serbinenko [Sat, 23 Oct 2010 18:34:50 +0000 (20:34 +0200)]
* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Revert r2882.

13 years ago * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
Vladimir 'phcoder' Serbinenko [Fri, 22 Oct 2010 20:49:36 +0000 (22:49 +0200)]
* grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
useless field head. All users updated.
(free_subchunk): Correct handling of IN_REGION subchunk.

13 years ago* docs/grub.texi (Installing GRUB using grub-install): Proofread.
Colin Watson [Fri, 22 Oct 2010 13:17:33 +0000 (14:17 +0100)]
* docs/grub.texi (Installing GRUB using grub-install): Proofread.
(Supported kernels): Likewise.

13 years agonetbsd fixes
BVK Chaitanya [Tue, 19 Oct 2010 05:14:57 +0000 (10:44 +0530)]
netbsd fixes

13 years agoMake mktemp invocations portable.
Grégoire Sutre [Mon, 18 Oct 2010 20:50:01 +0000 (22:50 +0200)]
Make mktemp invocations portable.

13 years ago * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
BVK Chaitanya [Mon, 18 Oct 2010 10:25:56 +0000 (15:55 +0530)]
* util/grub.d/10_linux.in: Fix built-in initramfs image mode for
Linux kernel, reported by Dennis Schridde.

13 years agoadd change log entry
BVK Chaitanya [Mon, 18 Oct 2010 08:11:00 +0000 (13:41 +0530)]
add change log entry

13 years agofix built-in initramfs case
BVK Chaitanya [Mon, 18 Oct 2010 08:08:42 +0000 (13:38 +0530)]
fix built-in initramfs case

13 years ago * grub-core/normal/auth.c (grub_auth_check_authentication):
Szymon Janc [Sun, 17 Oct 2010 13:41:54 +0000 (15:41 +0200)]
* grub-core/normal/auth.c (grub_auth_check_authentication):
Set-but-not-used variable removed.

13 years ago * docs/grub.texi (GNU/Linux): Document APM unavailability with
Vladimir 'phcoder' Serbinenko [Sun, 17 Oct 2010 00:08:08 +0000 (02:08 +0200)]
* docs/grub.texi (GNU/Linux): Document APM unavailability with
32-bit linux protocol.

13 years ago * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 23:49:06 +0000 (01:49 +0200)]
* grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
cursor shape for sanity.

13 years ago * docs/grub.texi (Installation): Document buggy BIOS install.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:46:39 +0000 (00:46 +0200)]
* docs/grub.texi (Installation): Document buggy BIOS install.

13 years ago * docs/grub.texi (Installation): Indent.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:38:57 +0000 (00:38 +0200)]
* docs/grub.texi (Installation): Indent.

13 years ago * util/grub-setup.c (setup): New parameter allow_floppy.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:35:14 +0000 (00:35 +0200)]
* util/grub-setup.c (setup): New parameter allow_floppy.
(arguments): New member allow_floppy.
(argp_parser): Handle --allow-floppy.
(main): Pass allow_floppy.
* util/grub-install.in: New option --allow-floppy passed though to
grub-setup.

13 years ago * util/grub-install.in: Handle partitionless disks.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:28:19 +0000 (00:28 +0200)]
* util/grub-install.in: Handle partitionless disks.

13 years ago * util/grub-setup.c (setup): Don't clean blocklists before readability
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 22:25:23 +0000 (00:25 +0200)]
* util/grub-setup.c (setup): Don't clean blocklists before readability
verfification.

13 years ago * docs/grub.texi (Installation): Document embedding zone. Remove
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 21:38:30 +0000 (23:38 +0200)]
* docs/grub.texi (Installation): Document embedding zone. Remove
obsolete grub-install example.

13 years ago * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Szymon Janc [Sat, 16 Oct 2010 20:16:52 +0000 (22:16 +0200)]
* grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
Set-but-not-used variable ifdef'ed.
* grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
* grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
variable removed.
* grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
* grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
* grub-core/fs/minix.c (grub_minix_dir): Likewise.
* grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
* grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
* grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
* grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
* grub-core/gfxmenu/widget-box.c (draw): Likewise.
* grub-core/lib/relocator.c (malloc_in_range): Likewise.
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
* grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
Likewise.

13 years ago * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 18:01:30 +0000 (20:01 +0200)]
* grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
* include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
enum value.

13 years ago * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 17:12:18 +0000 (19:12 +0200)]
* grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
synonym to _S5_. Needed for some DSDTs.

13 years ago Userspace ACPI parser debugging.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 17:06:55 +0000 (19:06 +0200)]
Userspace ACPI parser debugging.

* grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
headers and add relevant defines. Don't include standard headers.
(main) [GRUB_DSDT_TEST]: New function.
* include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
Don't declare functions.

13 years ago Remove dead grub_efi_mm_fini.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:50:48 +0000 (17:50 +0200)]
Remove dead grub_efi_mm_fini.

* grub-core/kern/efi/mm.c (allocated_page): Removed.
(ALLOCATED_PAGES_SIZE): Likewise.
(MAX_ALLOCATED_PAGES): Likewise.
(allocated_pages): Likewise.
(grub_efi_allocate_pages): Don't record allocated pages.
(grub_efi_free_pages): Likewise.
(grub_efi_mm_init): Likewise.
(grub_efi_mm_fini): Removed.

13 years ago * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:44:35 +0000 (17:44 +0200)]
* grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
(grub_efi_mm_init): Take into account the memory map size increase.

13 years ago * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
Vladimir 'phcoder' Serbinenko [Sat, 16 Oct 2010 15:29:12 +0000 (17:29 +0200)]
* grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
(serial_hw_put): Wait based on real time rather than port reads. Don't
roken ports.
* include/grub/serial.h (grub_serial_port): New field broken.

13 years agoMention who reported this bug.
Robert Millan [Sat, 16 Oct 2010 00:34:10 +0000 (02:34 +0200)]
Mention who reported this bug.

13 years ago2010-10-16 Robert Millan <rmh@gnu.org>
Robert Millan [Sat, 16 Oct 2010 00:30:14 +0000 (02:30 +0200)]
2010-10-16  Robert Millan  <rmh@gnu.org>

* grub-core/kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Fix premature return
when processing non-root ZFS filesystems.

13 years ago2010-10-15 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 15 Oct 2010 10:06:13 +0000 (12:06 +0200)]
2010-10-15  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
guarantee compressed ones are processed first.

13 years ago * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
Vladimir 'phcoder' Serbinenko [Thu, 14 Oct 2010 13:44:04 +0000 (15:44 +0200)]
* grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
grub_efiemu_autocore.

13 years ago * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
Vladimir 'phcoder' Serbinenko [Thu, 14 Oct 2010 13:35:55 +0000 (15:35 +0200)]
* grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
rather than 0x1b.
(grub_console_getkey): Use correct jae opcode rather than ja.