]> git.proxmox.com Git - grub2.git/log
grub2.git
13 years agoMake grub-mount exit non-zero if opening the device or filesystem fails.
Colin Watson [Sun, 10 Apr 2011 20:41:55 +0000 (21:41 +0100)]
Make grub-mount exit non-zero if opening the device or filesystem fails.

Translate GRUB error codes into OS error codes for FUSE.

13 years agoremove trailing full stop, for consistency with other pages
Colin Watson [Fri, 8 Apr 2011 10:45:10 +0000 (11:45 +0100)]
remove trailing full stop, for consistency with other pages

13 years agorename grub-fuse to grub-mount throughout configuration
Colin Watson [Fri, 8 Apr 2011 09:43:12 +0000 (10:43 +0100)]
rename grub-fuse to grub-mount throughout configuration

13 years agofix duplicate --enable-grub-mkfont option; this should be --enable-grub-fuse instead
Colin Watson [Fri, 8 Apr 2011 09:38:41 +0000 (10:38 +0100)]
fix duplicate --enable-grub-mkfont option; this should be --enable-grub-fuse instead

13 years agofix header comment
Colin Watson [Fri, 8 Apr 2011 09:31:32 +0000 (10:31 +0100)]
fix header comment

13 years agoRename grub-fuse to grub-mount (with Vladimir's blessing)
Robert Millan [Tue, 11 Jan 2011 20:20:54 +0000 (21:20 +0100)]
Rename grub-fuse to grub-mount (with Vladimir's blessing)

13 years agogrub-fuse
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 18:51:08 +0000 (19:51 +0100)]
grub-fuse

13 years ago * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:56:09 +0000 (01:56 +0100)]
* grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
avoid aliasing.
(fzap_lookup): Likewise.
(dnode_get): Likewise.
(make_mdn): Likewise.
(zfs_mount): Likewise.
(fzap_iterate): Use temporary pointer to avoid aliasing.
(grub_zfs_read): Likewise.
* grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
* grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
pointers to avoid aliasing.
(grub_cmd_xnu_kernel64): Likewise.
(grub_xnu_load_driver): Likewise.

13 years ago * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:50:06 +0000 (01:50 +0100)]
* grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
aliasing warning.
(grub_cmd_terminal_output): Likewise.
Reported and tested by: Grégoire Sutre.

13 years ago * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
Vladimir 'phcoder' Serbinenko [Sat, 8 Jan 2011 00:45:57 +0000 (01:45 +0100)]
* grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
warning.
Reported and tested by: Grégoire Sutre.

13 years ago * configure.ac: Do CPU substitution even if it's specified explicitly.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:44:38 +0000 (00:44 +0100)]
* configure.ac: Do CPU substitution even if it's specified explicitly.
Reported and tested by: Alain Greppin.

13 years ago * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:39:12 +0000 (00:39 +0100)]
* grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
Reported and tested by: Alain Greppin.

13 years ago Satisfy some bison versions need for inttypes.h.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:34:23 +0000 (00:34 +0100)]
Satisfy some bison versions need for inttypes.h.

* grub-core/lib/posix_wrap/inttypes.h: New file.
* grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
(int16_t): Likewise.
(int32_t): Likewise.
(int64_t): Likewise.
Reported and tested by: Alain Greppin.

13 years ago * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 23:27:38 +0000 (00:27 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
Silence spurious warning.
Reported and tested by: Alain Greppin.

13 years ago * docs/grub.texi (Support automatic decompression): Update with xz
Szymon Janc [Fri, 7 Jan 2011 21:42:02 +0000 (22:42 +0100)]
* docs/grub.texi (Support automatic decompression): Update with xz
decompression support.

13 years ago Improve loaders' kernel command line handling.
Szymon Janc [Fri, 7 Jan 2011 16:09:39 +0000 (17:09 +0100)]
Improve loaders' kernel command line handling.

* grub-core/lib/cmdline.c: New file.
* include/grub/lib/cmdline.h: Likewise.
* grub-core/loader/i386/linux.c (grub_cmd_linux): Use
grub_create_loader_cmdline to create kernel command line.
* grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
* grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
(linux): Add lib/cmdline.c on common.

13 years ago * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 16:06:42 +0000 (17:06 +0100)]
* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
inopos might be unaligned.

13 years ago * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 15:17:24 +0000 (16:17 +0100)]
* grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
endian transformations.
* grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
Based on report by: Doug Nazar.

13 years ago * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
Doug Nazar [Fri, 7 Jan 2011 13:41:44 +0000 (14:41 +0100)]
* grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
array->members[i].start_sector.
* grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.

13 years ago * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
Vladimir 'phcoder' Serbinenko [Fri, 7 Jan 2011 12:27:34 +0000 (13:27 +0100)]
* util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
Reported and tested by: Grégoire Sutre.

13 years ago* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
Colin Watson [Thu, 6 Jan 2011 13:24:38 +0000 (13:24 +0000)]
* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
avoid causing test failures by clearing the screen.

13 years ago* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Colin Watson [Thu, 6 Jan 2011 11:09:17 +0000 (11:09 +0000)]
* grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
Fix prefix check to handle the case where dir ends with a slash
(most significantly, "/" itself).
Reported by: Michael Vogt.

13 years ago Run terminfo_cls on initing terminfo output to clear the screen and
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 11:23:06 +0000 (12:23 +0100)]
Run terminfo_cls on initing terminfo output to clear the screen and
move the cursor to (0,0).

* grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
Call grub_terminfo_output_init.
* grub-core/term/serial.c (grub_serial_term_output): Set .init.
* grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
* include/grub/terminfo.h (grub_terminfo_output_init): New declaration.

13 years ago * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:28:28 +0000 (01:28 +0100)]
* util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
only when needed.

13 years ago * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:25:01 +0000 (01:25 +0100)]
* grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
CTRL.

13 years ago The E820 type 5 is BADRAM, not EXEC_CODE.
Vladimir 'phcoder' Serbinenko [Wed, 5 Jan 2011 00:14:32 +0000 (01:14 +0100)]
The E820 type 5 is BADRAM, not EXEC_CODE.

* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.
* grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
into reserved. Propagate BADRAM.
* grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
(GRUB_E820_BADRAM): New define.

13 years ago * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 18:08:03 +0000 (19:08 +0100)]
* grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
Ignore the memory post-4G.
(grub_relocator_firmware_alloc_region): Additional debug statement.

13 years ago * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 17:15:27 +0000 (18:15 +0100)]
* grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
names.
Reported by: David Pravec.

13 years ago * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:42:47 +0000 (15:42 +0100)]
* grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
BIOSes.

13 years ago * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:39:59 +0000 (15:39 +0100)]
* grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
Prevent overflow.
(grub_reed_solomon_recover): Likewise.

13 years ago * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:37:10 +0000 (15:37 +0100)]
* grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.

13 years ago * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
Vladimir 'phcoder' Serbinenko [Tue, 4 Jan 2011 14:35:10 +0000 (15:35 +0100)]
* grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
variable.

13 years ago* grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
Colin Watson [Tue, 4 Jan 2011 13:05:19 +0000 (13:05 +0000)]
* grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
descriptions of extract_legacy_entries_source and
extract_legacy_entries_configfile.
Reported by: Seung Soo, Ha.

13 years ago* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
Colin Watson [Mon, 3 Jan 2011 23:56:45 +0000 (23:56 +0000)]
* grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
on devices that do not implement function 0.

13 years ago * grub-core/fs/hfsplus.c: Make parent unsigned.
Dave Vasilevsky [Mon, 3 Jan 2011 14:30:41 +0000 (15:30 +0100)]
* grub-core/fs/hfsplus.c: Make parent unsigned.
(grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
overflows.
(grub_hfsplus_cmp_extkey): Likewise

13 years ago * util/grub-install.in: Correctly use bootloader_id and not
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:33:43 +0000 (14:33 +0100)]
* util/grub-install.in: Correctly use bootloader_id and not
GRUB_DISTRIBUTOR on efibootmgr line.

13 years ago * util/grub-mkfont.c (main): Report errors in FT_New_Face.
Vladimir 'phcoder' Serbinenko [Mon, 3 Jan 2011 13:16:42 +0000 (14:16 +0100)]
* util/grub-mkfont.c (main): Report errors in FT_New_Face.

13 years ago* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
Ian Campbell [Fri, 31 Dec 2010 22:49:42 +0000 (22:49 +0000)]
* util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
Xen and reorder menu item wording to make it clearer that this entry
will launch Xen.  Print separate messages when loading Xen and
Linux.

13 years ago * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 14:00:45 +0000 (15:00 +0100)]
* grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
(amiga_partition_map_iterate): Check "PART" magic to avoid a very long
loop in case of incorrect amiga partmap.

13 years ago * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 13:55:55 +0000 (14:55 +0100)]
* grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
(amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
Reported by:EHeM.

13 years ago * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
Vladimir 'phcoder' Serbinenko [Fri, 31 Dec 2010 11:37:35 +0000 (12:37 +0100)]
* grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
spurious warning.
Reported by: crocket

13 years ago * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:19:51 +0000 (07:19 +0100)]
* grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
Preload EFIemu.
(grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.

13 years ago * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:18:24 +0000 (07:18 +0100)]
* grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
is loaded
(grub_cmd_xnu_kextdir): Likewise.
(grub_cmd_xnu_splash): Likewise.

13 years ago Avoid using Reed-Solomon with 0 redundancy.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:09:43 +0000 (07:09 +0100)]
Avoid using Reed-Solomon with 0 redundancy.

* grub-core/kern/i386/pc/startup.S: Remove 0-data check.
* grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
or 0 redundancy.
(grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
(grub_reed_solomon_recover): Likewise.

13 years ago Don't use disk subsystem in freebsd_boot.
Vladimir 'phcoder' Serbinenko [Mon, 27 Dec 2010 06:06:41 +0000 (07:06 +0100)]
Don't use disk subsystem in freebsd_boot.

* grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
(freebsd_biosdev): Likewise.
(grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
(grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.

13 years ago Handling of files of unknown size is currently limited. They can't be
Vladimir 'phcoder' Serbinenko [Sun, 26 Dec 2010 20:15:31 +0000 (21:15 +0100)]
Handling of files of unknown size is currently limited. They can't be
used e.g. for initrd or modules. Moreover gzip handling of not
easily seekable files is buggy. Disable unknown file size for now. May
be inefficient but works.

* grub-core/io/gzio.c (test_header): Always retrieve the file size.
* grub-core/io/xzio.c (grub_xzio_open): Likewise.

13 years ago * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
Mirko Parthey [Sun, 26 Dec 2010 19:49:08 +0000 (20:49 +0100)]
* grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
floppy probe.

13 years ago * grub-core/disk/raid.c (insert_array): Don't add spurious members.
Jeroen Dekkers [Sat, 25 Dec 2010 21:32:54 +0000 (22:32 +0100)]
* grub-core/disk/raid.c (insert_array): Don't add spurious members.

13 years ago * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
Shea Levy [Sat, 25 Dec 2010 17:21:46 +0000 (18:21 +0100)]
* grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.

13 years ago * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 17:16:01 +0000 (18:16 +0100)]
* util/grub.d/30_os-prober.in: Don't emit drivemap directive for
Windows Server 2008.
Reported by: Devin Giddings.

13 years ago * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
Vladimir 'phcoder' Serbinenko [Sat, 25 Dec 2010 13:09:36 +0000 (14:09 +0100)]
* grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
writing an error message because of async power management.
* grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
(grub_reboot): Likewise.

13 years ago* tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
Jordan Uggla [Thu, 23 Dec 2010 11:51:18 +0000 (11:51 +0000)]
* tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
keep unit tests from failing when they shouldn't.

13 years ago* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
Colin Watson [Tue, 21 Dec 2010 17:41:47 +0000 (17:41 +0000)]
* include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
previous patch increased the size of the RS code by 20 bytes (at
least with gcc-4.4), so increase this by 20 bytes to match.
(GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.

13 years ago* grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
Colin Watson [Tue, 21 Dec 2010 16:51:08 +0000 (16:51 +0000)]
* grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
scratch area.  Make sure to initialise chosen in standalone mode as
well as non-standalone.
Reported by: Robert Hooker and Andy Whitcroft.
Tested by: Andy Whitcroft.

13 years ago* grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
Colin Watson [Tue, 21 Dec 2010 13:52:07 +0000 (13:52 +0000)]
* grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
constructing a new unescaped string and passing it to grub_xputs in
one go, rather than passing characters to grub_printf one at a time.

13 years ago* grub-core/fs/udf.c (read_string): Pacify GCC warning by
Colin Watson [Tue, 21 Dec 2010 13:00:10 +0000 (13:00 +0000)]
* grub-core/fs/udf.c (read_string): Pacify GCC warning by
initialising utf16.

13 years ago* util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
Colin Watson [Tue, 21 Dec 2010 12:49:29 +0000 (12:49 +0000)]
* util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
comment.  Add an extra layer of quotation, requiring the output of
this function to be used in a printf format string.
(gettext_printf): New function.
* util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
Extract translatable strings from here-documents and use a temporary
variable instead, so that xgettext can find them.
* util/grub.d/10_kfreebsd.in: Likewise.
* util/grub.d/10_linux.in: Likewise.
* util/grub.d/20_linux_xen.in: Likewise.

* po/grub.d.sed: New file.
* po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
arguments.  Set c-format flags on all strings extracted from
util/grub.d/ (xgettext refuses to include these itself for strings
it extracted from a shell file, but these really are c-format).

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
Vladimir 'phcoder' Serbinenko [Mon, 20 Dec 2010 15:13:01 +0000 (16:13 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
Avoid next pointing to nowhere.

13 years ago * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:52:18 +0000 (00:52 +0100)]
* grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
rather than assuming than rootblock is exactly in the middle.
(grub_affs_label): Likewise.

13 years ago * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:49:52 +0000 (00:49 +0100)]
* grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
reserved_first_sector to 0.
* grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
* grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
* grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.

13 years ago Fix handling of UTF-16 UDF labels.
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 23:43:41 +0000 (00:43 +0100)]
Fix handling of UTF-16 UDF labels.

* grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
(read_string): .. here.
(grub_udf_label): Use read_string.

13 years ago * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 21:47:50 +0000 (22:47 +0100)]
* util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.

13 years ago * grub-core/normal/menu_entry.c (run): Execute commands from menu
BVK Chaitanya [Sun, 19 Dec 2010 04:25:51 +0000 (09:55 +0530)]
* grub-core/normal/menu_entry.c (run): Execute commands from menu
editor under argument scope.
Reported by: Jordan Uggla

13 years agomerge with mainline
BVK Chaitanya [Sun, 19 Dec 2010 03:47:22 +0000 (09:17 +0530)]
merge with mainline

13 years ago* grub-core/normal/term.c (print_more): Make \r or \n scroll one
Colin Watson [Sat, 18 Dec 2010 17:37:48 +0000 (17:37 +0000)]
* grub-core/normal/term.c (print_more): Make \r or \n scroll one
line, and other keys scroll an entire page (previous handling was
for \r and \n to scroll a page and other keys to scroll two lines).

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Vladimir 'phcoder' Serbinenko [Sat, 18 Dec 2010 13:31:05 +0000 (14:31 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
Set ptrdest to correct get_physical_target_address rather than
incorrect get_virtual_current_address.

13 years ago * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
kashyap garimella [Sat, 18 Dec 2010 14:22:11 +0000 (15:22 +0100)]
* grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
correct cat to grub_uint8_t * rather than grub_uint32_t *.

13 years ago* .bzrignore: Ignore grub-core/rs_decoder.S.
Colin Watson [Fri, 10 Dec 2010 12:56:45 +0000 (12:56 +0000)]
* .bzrignore: Ignore grub-core/rs_decoder.S.

13 years ago* grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
Colin Watson [Fri, 10 Dec 2010 11:45:08 +0000 (11:45 +0000)]
* grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
.mo/.mo.gz opening sequence to ...
(grub_mofile_open_lang): ... here.
(grub_gettext_init_ext): If opening ll_CC fails, try ll.
* util/grub.d/00_header.in (grub_lang): Include country part of
locale.
Reported by: Mario Limonciello.

13 years ago2010-12-09 Robert Millan <rmh@gnu.org>
Robert Millan [Thu, 9 Dec 2010 13:09:37 +0000 (14:09 +0100)]
2010-12-09  Robert Millan  <rmh@gnu.org>

* NEWS: Document addition of ZFS support.

13 years agoexecute menu editor commands with argument scope
BVK Chaitanya [Wed, 8 Dec 2010 11:13:11 +0000 (16:43 +0530)]
execute menu editor commands with argument scope

13 years ago* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
Colin Watson [Sat, 4 Dec 2010 16:19:26 +0000 (16:19 +0000)]
* grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
rather than `/ 2', as the latter requires -Wa,--divide which would
require bumping our minimum binutils version.

13 years ago * util/grub-script-check.c (main): Print script line number on
BVK Chaitanya [Fri, 3 Dec 2010 03:28:34 +0000 (08:58 +0530)]
* util/grub-script-check.c (main): Print script line number on
error.

13 years agoprint line number on error
BVK Chaitanya [Fri, 3 Dec 2010 03:25:57 +0000 (08:55 +0530)]
print line number on error

13 years agoMerge ZFS.
Robert Millan [Wed, 1 Dec 2010 21:57:49 +0000 (22:57 +0100)]
Merge ZFS.

13 years agoUpdate GPL for ZFS code to version 3, move copyright lines for Vladimir and me to...
Robert Millan [Wed, 1 Dec 2010 21:55:26 +0000 (22:55 +0100)]
Update GPL for ZFS code to version 3, move copyright lines for Vladimir and me to FSF (covered by our assignments)

13 years ago2010-12-01 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 1 Dec 2010 21:42:11 +0000 (22:42 +0100)]
2010-12-01  Robert Millan  <rmh@gnu.org>

* grub-core/fs/zfs/zfs.c: New file.
* grub-core/fs/zfs/zfs_fletcher.c: Likewise.
* grub-core/fs/zfs/zfs_lzjb.c: Likewise.
* grub-core/fs/zfs/zfs_sha256.c: Likewise.
* grub-core/fs/zfs/zfsinfo.c: Likewise.

* include/grub/zfs/dmu.h: Likewise.
* include/grub/zfs/dmu_objset.h: Likewise.
* include/grub/zfs/dnode.h: Likewise.
* include/grub/zfs/dsl_dataset.h: Likewise.
* include/grub/zfs/dsl_dir.h: Likewise.
* include/grub/zfs/sa_impl.h: Likewise.
* include/grub/zfs/spa.h: Likewise.
* include/grub/zfs/uberblock_impl.h: Likewise.
* include/grub/zfs/vdev_impl.h: Likewise.
* include/grub/zfs/zap_impl.h: Likewise.
* include/grub/zfs/zap_leaf.h: Likewise.
* include/grub/zfs/zfs.h: Likewise.
* include/grub/zfs/zfs_acl.h: Likewise.
* include/grub/zfs/zfs_znode.h: Likewise.
* include/grub/zfs/zil.h: Likewise.
* include/grub/zfs/zio.h: Likewise.
* include/grub/zfs/zio_checksum.h: Likewise.

* Makefile.util.def: Build ZFS into libgrubmods.
* grub-core/Makefile.core.def: Build zfs.mod.

13 years agomerge some more commits from before Savannah compromise (mirrored by Launchpad)
Colin Watson [Wed, 1 Dec 2010 16:19:26 +0000 (16:19 +0000)]
merge some more commits from before Savannah compromise (mirrored by Launchpad)

13 years ago * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
Szymon Janc [Tue, 30 Nov 2010 20:35:59 +0000 (21:35 +0100)]
* grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
variable.
* grub-core/commands/wildcard.c (match_files): Likewise.

13 years ago2010-11-30 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 30 Nov 2010 18:33:12 +0000 (19:33 +0100)]
2010-11-30  Robert Millan  <rmh@gnu.org>

* grub-core/loader/i386/bsd.c
(grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
whether kernel is loaded using grub_loader_is_loaded(), rather
than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
certain error conditions.

13 years agomerge commits from before Savannah compromise
Colin Watson [Tue, 30 Nov 2010 17:01:52 +0000 (17:01 +0000)]
merge commits from before Savannah compromise

13 years agoAdd missing include
Robert Millan [Tue, 30 Nov 2010 15:23:41 +0000 (16:23 +0100)]
Add missing include

13 years ago2010-11-30 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 30 Nov 2010 14:36:47 +0000 (15:36 +0100)]
2010-11-30  Robert Millan  <rmh@gnu.org>

* grub-core/commands/echo.c (grub_cmd_echo): Call grub_refresh()
after printing a message.

13 years ago Avoid using tricks for initialising endian variables.
Vladimir 'phcoder' Serbinenko [Fri, 26 Nov 2010 21:29:19 +0000 (22:29 +0100)]
Avoid using tricks for initialising endian variables.

* grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
Make const.
(GRUB_MOD_INIT): Don't byte-swap.
* include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
* include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
(grub_swap_bytes32_compile_time): Likewise.
(grub_cpu_to_le32_compile_time): Likewise.
(grub_cpu_to_le16_compile_time): Likewise.

13 years ago * util/grub-setup.c (setup): Stop recommending --force. People who
Vladimir 'phcoder' Serbinenko [Fri, 26 Nov 2010 21:03:16 +0000 (22:03 +0100)]
* util/grub-setup.c (setup): Stop recommending --force. People who
understand the dangers of blocklists are able to find this option
anyway and the ones who don't shouldn't use it anyway.

13 years ago2010-11-26 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 26 Nov 2010 14:35:40 +0000 (15:35 +0100)]
2010-11-26  Robert Millan  <rmh@gnu.org>

* grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
Update all users.

13 years agoFix LVM-on-RAID probing.
Colin Watson [Fri, 26 Nov 2010 12:26:37 +0000 (12:26 +0000)]
Fix LVM-on-RAID probing.

* util/grub-probe.c (probe): Remember which disk was detected as
RAID (perhaps an LVM physical volume).  Use that disk's raidname
rather than that of the top-level disk.

13 years ago Fix cmdline argument quotes for setparams command of menuentry
BVK Chaitanya [Thu, 25 Nov 2010 14:29:10 +0000 (19:59 +0530)]
Fix cmdline argument quotes for setparams command of menuentry
definitions.

* grub-core/commands/menuentry.c (setparams_prefix): Use single
quotes for arguments.
* grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
grub_strchrsub function instead.

* include/grub/misc.h (grub_strchrsub): New function.

13 years agomerge with mainline
BVK Chaitanya [Thu, 25 Nov 2010 14:24:50 +0000 (19:54 +0530)]
merge with mainline

13 years agovariable ordering
BVK Chaitanya [Thu, 25 Nov 2010 13:37:02 +0000 (19:07 +0530)]
variable ordering

13 years agofix changelog and doc
BVK Chaitanya [Thu, 25 Nov 2010 13:35:16 +0000 (19:05 +0530)]
fix changelog and doc

13 years agoreplaced with grub_strchrsub function
BVK Chaitanya [Thu, 25 Nov 2010 13:26:20 +0000 (18:56 +0530)]
replaced with grub_strchrsub function

13 years agobetter changelog message
BVK Chaitanya [Thu, 25 Nov 2010 12:55:26 +0000 (18:25 +0530)]
better changelog message

13 years ago* util/deviceiter.c (grub_util_iterate_devices): Save a bit of
Colin Watson [Wed, 24 Nov 2010 19:43:32 +0000 (19:43 +0000)]
* util/deviceiter.c (grub_util_iterate_devices): Save a bit of
effort by skipping "." and ".." entries up-front.
Suggested by: Michael Lazarev.

13 years ago* grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
Colin Watson [Wed, 24 Nov 2010 19:32:49 +0000 (19:32 +0000)]
* grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
ldflags to ldadd, to fix link line ordering.
(none_decompress): Likewise.

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.