1. 29 Apr, 2015 1 commit
  2. 07 Dec, 2014 1 commit
    • Andrei Borzenkov's avatar
      Avoid use of non-portable echo -n in grub-mkconfig · cdae5bf2
      Andrei Borzenkov authored
      util/grub-mkconfig_lib.in(version_test_gt): "echo -n" is not really needed,
      final newline is stripped by command substitution.
      
      util/grub.d/10_kfreebsd.in, util/grub.d/10_linux.in,
      util/grub.d/20_linux_xen.in: change how list is built, to avoid echo -n
      completely.
      
      util/grub.d/30_os-prober.in: add spaces to printed line directly
      
      Closes 43668.
      cdae5bf2
  3. 09 Jul, 2014 1 commit
    • Colin Watson's avatar
      Fix an infinite loop in grub-mkconfig · 0901e785
      Colin Watson authored
      * util/grub.d/10_hurd.in: Make kernel list progression not fail on
      kernels whose paths contain regex metacharacters.
      * util/grub.d/10_kfreebsd.in: Likewise.
      * util/grub.d/10_linux.in: Likewise.
      * util/grub.d/20_linux_xen.in: Likewise.
      
      Reported by: Heimo Stranner.
      0901e785
  4. 24 Dec, 2013 1 commit
  5. 17 Dec, 2013 1 commit
  6. 04 Nov, 2013 1 commit
  7. 23 Sep, 2013 1 commit
  8. 04 Jan, 2013 2 commits
  9. 18 Sep, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * util/grub-mkconfig_lib.in (grub_tab): New variable. · 140acd3c
      Vladimir 'phcoder' Serbinenko authored
      	(grub_add_tab): New function.
      	* util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
      	* util/grub.d/10_illumos.in: Likewise.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/10_windows.in: Likewise.
      	* util/grub.d/10_xnu.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      140acd3c
  10. 22 Jul, 2012 1 commit
  11. 05 Mar, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Use submenus in grub-mkconfig. · 0cdc126c
      Vladimir 'phcoder' Serbinenko authored
      	* util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
      	* util/grub-mkconfig_lib.in (grub_quote): New function.
      	(gettext_printf): Use gettext and not gettext_quoted to fix several
      	messages.
      	* util/grub.d/10_hurd.in: Use submenus.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      	* util/grub.d/10_illumos.in: Add missing quoting.
      	* util/grub.d/10_windows.in: Likewise.
      0cdc126c
  12. 04 Mar, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Fix menu title instability bug. · d9bef9bc
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/menuentry.c (options): New option --id.
      	(grub_normal_add_menu_entry): New argument id. All users updated.
      	(grub_cmd_menuentry): Handle --id.
      	(grub_menu_init): Accept unknown arguments.
      	* grub-core/normal/main.c (features): Add feature_menuentry_id and
      	feature_menuentry_options.
      	* grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
      	saved_entry.
      	(get_entry_number): Match with id as well.
      	* include/grub/menu.h (grub_menu_entry): New member id.
      	* util/grub-mkconfig_lib.in (grub_get_device_id): New function.
      	* util/grub.d/00_header.in: Define menuentry_id_option.
      	* util/grub.d/10_hurd.in: Define id.
      	* util/grub.d/10_illumos.in: Likewise.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/10_windows.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      d9bef9bc
  13. 03 Feb, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * util/grub-mkstandalone.in: Fix help messages. Gettextize. · a32d5c71
      Vladimir 'phcoder' Serbinenko authored
      	* util/grub-install.in: Gettextize.
      	* util/grub-mkconfig.in: Likewise.
      	* util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
      	if not available.
      	(grub_warn): Gettextize.
      	* util/grub-mknetdir.in: Gettextize.
      	* util/grub-mkrescue.in: Likewise.
      	* util/grub-mkstandalone.in: Likewise.
      	* util/grub-reboot.in: Likewise.
      	* util/grub-set-default.in: Likewise.
      	* util/grub.d/00_header.in: Likewise.
      	* util/grub.d/10_hurd.in: Likewise.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/10_windows.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      	* po/POTFILES-shell.in: Regenerate.
      a32d5c71
  14. 24 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Handle newer autotools. Add some missing quotes while on it. · 48b391e9
      Vladimir 'phcoder' Serbinenko authored
      	* Makefile.am (pkglib_DATA): Remove update-grub_lib.
      	(pkglib_DATA): Move grub-mkconfig_lib from here ...
      	(pkgdata_DATA): ... here.
      	* Makefile.util.def (update-grub_lib): Removed.
      	* conf/Makefile.common (pkglib_DATA): Removed.
      	(pkglib_SCRIPTS): Likewise.
      	(pkgdata_DATA): New variable.
      	* tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
      	needed.
      	Add missing quotes.
      	Remove unused variable while on it.
      	* tests/util/grub-shell.in: Likewise.
      	* util/grub-install.in: Likewise.
      	* util/grub-mkconfig.in: Likewise.
      	* util/grub-mknetdir.in: Likewise.
      	* util/grub-mkrescue.in: Likewise.
      	* util/grub-mkstandalone.in: Likewise.
      	* util/grub.d/00_header.in: Likewise.
      	* util/grub.d/10_hurd.in: Likewise.
      	* util/grub.d/10_illumos.in: Likewise.
      	* util/grub.d/10_kfreebsd.in: Likewise.
      	* util/grub.d/10_linux.in: Likewise.
      	* util/grub.d/10_netbsd.in: Likewise.
      	* util/grub.d/10_windows.in: Likewise.
      	* util/grub.d/20_linux_xen.in: Likewise.
      	* util/grub.d/30_os-prober.in: Likewise.
      	* util/update-grub_lib.in: Removed.
      48b391e9
  15. 08 Nov, 2011 1 commit
  16. 24 Oct, 2011 1 commit
  17. 10 Oct, 2011 1 commit
    • Robert Millan's avatar
      2011-10-09 Robert Millan <rmh@gnu.org> · a98f4a08
      Robert Millan authored
              LVM support for FreeBSD and GNU/kFreeBSD.
      
              * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
              GNU/kFreeBSD.
              (LVM_DEV_MAPPER_STRING): Move from here ...
              * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
              * util/getroot.c: Include `<grub/util/lvm.h>'.
              (grub_util_get_dev_abstraction): Enable
              grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
              Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
              (grub_util_get_grub_dev): Replace "/dev/mapper/" with
              `LVM_DEV_MAPPER_STRING'.  Enable LVM and mdRAID only on platforms that
              support it.
              * util/grub-setup.c (main): Check for LVM also on FreeBSD and
              GNU/kFreeBSD.
              * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
              when LVM abstraction is required for ${GRUB_DEVICE}.
      a98f4a08
  18. 03 Jul, 2011 1 commit
  19. 29 Mar, 2011 1 commit
  20. 09 Feb, 2011 1 commit
  21. 21 Dec, 2010 1 commit
    • Colin Watson's avatar
      * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying · 4e01b6c8
      Colin Watson authored
      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).
      4e01b6c8
  22. 01 Nov, 2010 1 commit
  23. 12 Oct, 2010 1 commit
    • Robert Millan's avatar
      2010-10-12 Robert Millan <rmh@gnu.org> · 219b3564
      Robert Millan authored
      	
      	* util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
      	`GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
      	variable.  All references updated.
      	
      	* util/grub.d/10_kfreebsd.in: Support recovery boot entries.
      	
      219b3564
  24. 21 Sep, 2010 1 commit
  25. 14 Sep, 2010 1 commit
  26. 10 Sep, 2010 2 commits
  27. 20 Aug, 2010 1 commit
    • Robert Millan's avatar
      2010-08-20 Robert Millan <rmh@gnu.org> · 21a313de
      Robert Millan authored
      	
      	Make kFreeBSD code more generic to support ext2fs as root, ufs as
      	a separate module and maybe other interesting combinations.
      	
      	* util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
      	(kfreebsd_entry): Use load_kfreebsd_module() to load modules.
      	(kfreebsd_entry): Add generic filesystem module load routine.
      	Map GRUB `ext2' to kFreeBSD `ext2fs'.
      	
      21a313de
  28. 08 Aug, 2010 2 commits
  29. 02 Aug, 2010 1 commit
    • Robert Millan's avatar
      2010-08-01 Robert Millan <rmh@gnu.org> · c7db243b
      Robert Millan authored
      	
      	* util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
      	kFreeBSD device name, except on ZFS where the filesystem label is
      	used.
      	(kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
      	`/boot/zfs/zpool.cache'.
      	Set mountfrom kernel variable using ${kfreebsd_device}.
      	
      c7db243b
  30. 01 Aug, 2010 1 commit
  31. 29 Jun, 2010 1 commit
    • Colin Watson's avatar
      * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e', · 1246efeb
      Colin Watson authored
      to avoid accidents when debugging with 'sh -x'.
      * util/grub-mkrescue.in: Likewise.
      * util/grub.d/00_header.in: Likewise.
      * util/grub.d/10_hurd.in: Likewise.
      * util/grub.d/10_kfreebsd.in: Likewise.
      * util/grub.d/10_linux.in: Likewise.
      * util/grub.d/10_netbsd.in: Likewise.
      * util/grub.d/10_windows.in: Likewise.
      * util/grub.d/20_linux_xen.in: Likewise.
      * util/grub.d/30_os-prober.in: Likewise.
      * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
      1246efeb
  32. 14 Apr, 2010 1 commit
  33. 13 Apr, 2010 1 commit
  34. 08 Apr, 2010 1 commit
  35. 28 Jan, 2010 1 commit
    • Colin Watson's avatar
      2010-01-28 Colin Watson <cjwatson@ubuntu.com> · 2e1cb9bb
      Colin Watson authored
      	* util/grub.d/10_linux.in: This script does not use any of the
      	contents of gettext.sh, only the external command `gettext', so stop
      	sourcing it.  (Moreover, gettext.sh isn't necessarily installed in
      	the same prefix as GRUB.)
      	* util/grub.d/10_kfreebsd.in: Likewise.
      2e1cb9bb
  36. 10 Jan, 2010 1 commit
    • Robert Millan's avatar
      2010-01-09 Robert Millan <rmh.grub@aybabtu.com> · 1a064917
      Robert Millan authored
      	
      	Make loader output a bit more user-friendly.
      	
      	* util/grub.d/10_hurd.in: Print message indicating that GNU Mach
      	is being loaded.  Likewise for the Hurd.
      	
      	* util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
      	that kernel of FreeBSD ${version} is being loaded.
      	
      	* loader/i386/linux.c (grub_cmd_linux): Move debug info to
      	grub_dprintf().
      	(grub_cmd_initrd): Likewise.
      	* util/grub.d/10_linux.in (linux_entry): Print message indicating
      	that Linux ${version} is being loaded.  Likewise for initrd.
      	
      1a064917
  37. 07 Jan, 2010 1 commit