merge gfxmenu into gfxmenu+multiterm
This commit is contained in:
commit
b6aa46f5f5
5 changed files with 33 additions and 11 deletions
5
ChangeLog.mkconfig
Normal file
5
ChangeLog.mkconfig
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
|
* util/grub.d/10_hurd.in: Add --class information to menuentries.
|
||||||
|
* util/grub.d/10_kfreebsd.in: Likewise.
|
||||||
|
* util/grub.d/10_linux.in: Likewise.
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
# grub-mkconfig helper script.
|
# grub-mkconfig helper script.
|
||||||
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
|
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -98,8 +98,11 @@ if [ x$GRUB_THEME != x ] && [ -f $GRUB_THEME ] \
|
||||||
&& is_path_readable_by_grub $GRUB_THEME; then
|
&& is_path_readable_by_grub $GRUB_THEME; then
|
||||||
echo "Found theme: $GRUB_THEME" >&2
|
echo "Found theme: $GRUB_THEME" >&2
|
||||||
prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME`
|
prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME`
|
||||||
echo "insmod gfxmenu"
|
cat << EOF
|
||||||
echo "set theme=(\$root)/`make_system_path_relative_to_its_root $GRUB_THEME`"
|
insmod gfxmenu
|
||||||
|
set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
|
||||||
|
set menuviewer=gfxmenu
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
cat << EOF
|
cat << EOF
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
# grub-mkconfig helper script.
|
# grub-mkconfig helper script.
|
||||||
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
|
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -21,10 +21,13 @@ exec_prefix=@exec_prefix@
|
||||||
libdir=@libdir@
|
libdir=@libdir@
|
||||||
. ${libdir}/grub/grub-mkconfig_lib
|
. ${libdir}/grub/grub-mkconfig_lib
|
||||||
|
|
||||||
|
CLASS="--class gnu --class os"
|
||||||
|
|
||||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||||
OS=GNU
|
OS=GNU
|
||||||
else
|
else
|
||||||
OS="${GRUB_DISTRIBUTOR} GNU/Hurd"
|
OS="${GRUB_DISTRIBUTOR} GNU/Hurd"
|
||||||
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') ${CLASS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
at_least_one=false
|
at_least_one=false
|
||||||
|
@ -69,7 +72,7 @@ if ${all_of_them} && test -e /lib/ld.so.1 ; then : ; else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat << EOF
|
cat << EOF
|
||||||
menuentry "${OS}" {
|
menuentry "${OS}" ${CLASS} {
|
||||||
EOF
|
EOF
|
||||||
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
|
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
# grub-mkconfig helper script.
|
# grub-mkconfig helper script.
|
||||||
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
|
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -26,9 +26,17 @@ libdir=@libdir@
|
||||||
export TEXTDOMAIN=@PACKAGE@
|
export TEXTDOMAIN=@PACKAGE@
|
||||||
export TEXTDOMAINDIR=@LOCALEDIR@
|
export TEXTDOMAINDIR=@LOCALEDIR@
|
||||||
|
|
||||||
|
CLASS="--class os"
|
||||||
|
|
||||||
case "${GRUB_DISTRIBUTOR}" in
|
case "${GRUB_DISTRIBUTOR}" in
|
||||||
Debian) OS="${GRUB_DISTRIBUTOR} GNU/kFreeBSD" ;;
|
Debian)
|
||||||
*) OS="FreeBSD" ;;
|
OS="${GRUB_DISTRIBUTOR} GNU/kFreeBSD"
|
||||||
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') --class gnu-kfreebsd --class gnu ${CLASS}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
OS="FreeBSD"
|
||||||
|
CLASS="--class freebsd --class bsd ${CLASS}"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
kfreebsd_entry ()
|
kfreebsd_entry ()
|
||||||
|
@ -38,7 +46,7 @@ kfreebsd_entry ()
|
||||||
recovery="$3" # not used yet
|
recovery="$3" # not used yet
|
||||||
args="$4" # not used yet
|
args="$4" # not used yet
|
||||||
title="$(gettext "%s, with kFreeBSD %s")"
|
title="$(gettext "%s, with kFreeBSD %s")"
|
||||||
printf "menuentry \"${title}\" {" ${os} ${version}
|
printf "menuentry \"${title}\" ${CLASS} {" ${os} ${version}
|
||||||
save_default_entry | sed -e "s/^/\t/"
|
save_default_entry | sed -e "s/^/\t/"
|
||||||
if [ -z "${prepare_boot_cache}" ]; then
|
if [ -z "${prepare_boot_cache}" ]; then
|
||||||
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#! /bin/sh -e
|
#! /bin/sh -e
|
||||||
|
|
||||||
# grub-mkconfig helper script.
|
# grub-mkconfig helper script.
|
||||||
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
|
# Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc.
|
||||||
#
|
#
|
||||||
# GRUB is free software: you can redistribute it and/or modify
|
# GRUB is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -26,10 +26,13 @@ libdir=@libdir@
|
||||||
export TEXTDOMAIN=@PACKAGE@
|
export TEXTDOMAIN=@PACKAGE@
|
||||||
export TEXTDOMAINDIR=@LOCALEDIR@
|
export TEXTDOMAINDIR=@LOCALEDIR@
|
||||||
|
|
||||||
|
CLASS="--class gnu-linux --class gnu --class os"
|
||||||
|
|
||||||
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
||||||
OS=GNU/Linux
|
OS=GNU/Linux
|
||||||
else
|
else
|
||||||
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
||||||
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]') ${CLASS}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# loop-AES arranges things so that /dev/loop/X can be our root device, but
|
# loop-AES arranges things so that /dev/loop/X can be our root device, but
|
||||||
|
@ -58,7 +61,7 @@ linux_entry ()
|
||||||
else
|
else
|
||||||
title="$(gettext "%s, with Linux %s")"
|
title="$(gettext "%s, with Linux %s")"
|
||||||
fi
|
fi
|
||||||
printf "menuentry \"${title}\" {" ${os} ${version}
|
printf "menuentry \"${title}\" ${CLASS} {" ${os} ${version}
|
||||||
save_default_entry | sed -e "s/^/\t/"
|
save_default_entry | sed -e "s/^/\t/"
|
||||||
if [ -z "${prepare_boot_cache}" ]; then
|
if [ -z "${prepare_boot_cache}" ]; then
|
||||||
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
|
||||||
|
|
Loading…
Add table
Reference in a new issue