~ubuntu-core-dev/ubuntu/lucid/grub2/lucid

« back to all changes in this revision

Viewing changes to util/grub.d/10_linux.in

  • Committer: Colin Watson
  • Date: 2010-02-01 22:39:32 UTC
  • mfrom: (1892.1.75 /trunk/grub)
  • Revision ID: cjwatson@canonical.com-20100201223932-wt8d27zcgt6wh0sr
merge from Debian 1.98~20100128-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
libdir=@libdir@
23
23
. ${libdir}/grub/grub-mkconfig_lib
24
24
 
25
 
. ${bindir}/gettext.sh
26
25
export TEXTDOMAIN=@PACKAGE@
27
26
export TEXTDOMAINDIR=@localedir@
28
27
 
60
59
  fi
61
60
  printf "menuentry \"${title}\" {\n" "${os}" "${version}"
62
61
  save_default_entry | sed -e "s/^/\t/"
 
62
 
 
63
  # Use ELILO's generic "efifb" when it's known to be available.
 
64
  # FIXME: We need an interface to select vesafb in case efifb can't be used.
 
65
  if grep -qx "CONFIG_FB_EFI=y" /boot/config-${version} 2> /dev/null ; then
 
66
    cat << EOF
 
67
        set gfxpayload=keep
 
68
EOF
 
69
  fi
 
70
 
63
71
  if [ -z "${prepare_boot_cache}" ]; then
64
72
    prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
65
73
  fi