Silvan Calarco
a3fa445080
patched 10_linux to set openmamba theme colors to submenu [release 2.02_beta3-1mamba;Thu Aug 25 2016]
48 lines
1.9 KiB
Diff
48 lines
1.9 KiB
Diff
--- grub-2.02_beta3/util/grub.d/10_linux.in.orig 2016-08-25 21:42:17.171800345 +0200
|
|
+++ grub-2.02_beta3/util/grub.d/10_linux.in 2016-08-25 21:53:04.725194113 +0200
|
|
@@ -235,16 +235,42 @@
|
|
fi
|
|
# TRANSLATORS: %s is replaced with an OS name
|
|
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
|
|
+ [ -e /etc/grub.d/05_theme_openmamba ] && . /etc/grub.d/05_theme_openmamba | grep color
|
|
is_top_level=false
|
|
+ else
|
|
+ linux_entry "${OS}" "${version}" default \
|
|
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
fi
|
|
|
|
- linux_entry "${OS}" "${version}" advanced \
|
|
- "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
+ linux_entry "${OS} (proprietary video driver)" "${version}" nomodeset \
|
|
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} nomodeset"
|
|
+
|
|
+ linux_entry "${OS} (with debug messages)" "${version}" debug \
|
|
+ "${GRUB_CMDLINE_LINUX} debug"
|
|
+
|
|
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
|
|
linux_entry "${OS}" "${version}" recovery \
|
|
"single ${GRUB_CMDLINE_LINUX}"
|
|
fi
|
|
|
|
+ initrd=
|
|
+ for i in "initramfs-${version}-failsafe.img.gz" "initramfs-${alt_version}-failsafe.img.gz" \
|
|
+ "initramfs-${version}-failsafe.img" "initramfs-${alt_version}-failsafe.img" \
|
|
+ "initramfs-${version}-failsafe.cpio.gz" "initramfs-${alt_version}-failsafe.cpio.gz"; do
|
|
+ if test -e "${dirname}/${i}" ; then
|
|
+ initrd="$i"
|
|
+ break
|
|
+ fi
|
|
+ done
|
|
+ if test -n "${initrd}" ; then
|
|
+ gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
|
|
+ linux_entry "${OS} (failsafe)" "${version}" advanced \
|
|
+ "rddebug splash selinux=0 ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
+ fi
|
|
+ echo -e "\tmenuentry ' ' {"
|
|
+ echo -e "\t\ttrue"
|
|
+ echo -e "\t}"
|
|
+
|
|
list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
|
|
done
|
|
|