Use submenus in grub-mkconfig.
* 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.
This commit is contained in:
parent
d9bef9bc43
commit
0cdc126ca2
11 changed files with 424 additions and 154 deletions
|
@ -40,6 +40,7 @@ grub_mkconfig_dir="${sysconfdir}"/grub.d
|
|||
self=`basename $0`
|
||||
|
||||
grub_probe="${sbindir}/`echo grub-probe | sed "${transform}"`"
|
||||
grub_editenv="${bindir}/`echo grub-editenv | sed "${transform}"`"
|
||||
grub_script_check="${bindir}/`echo grub-script-check | sed "${transform}"`"
|
||||
|
||||
export TEXTDOMAIN=@PACKAGE@
|
||||
|
@ -165,6 +166,11 @@ for x in ${GRUB_TERMINAL_OUTPUT}; do
|
|||
esac
|
||||
done
|
||||
|
||||
GRUB_ACTUAL_DEFAULT="$GRUB_DEFAULT"
|
||||
|
||||
if [ "x${GRUB_ACTUAL_DEFAULT}" = "xsaved" ] ; then GRUB_ACTUAL_DEFAULT="`"${grub_editenv}" - list | sed -n '/^saved_entry=/ s,^saved_entry=,,p'`" ; fi
|
||||
|
||||
|
||||
# These are defined in this script, export them here so that user can
|
||||
# override them.
|
||||
export GRUB_DEVICE \
|
||||
|
@ -173,7 +179,8 @@ export GRUB_DEVICE \
|
|||
GRUB_DEVICE_BOOT_UUID \
|
||||
GRUB_FS \
|
||||
GRUB_FONT \
|
||||
GRUB_PRELOAD_MODULES
|
||||
GRUB_PRELOAD_MODULES \
|
||||
GRUB_ACTUAL_DEFAULT
|
||||
|
||||
# These are optional, user-defined variables.
|
||||
export GRUB_DEFAULT \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue