38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
|
diff -Nru grub-2.00.orig/util/grub.d/10_linux.in grub-2.00/util/grub.d/10_linux.in
|
||
|
--- grub-2.00.orig/util/grub.d/10_linux.in 2012-04-18 23:24:38.000000000 +0200
|
||
|
+++ grub-2.00/util/grub.d/10_linux.in 2013-03-04 22:05:47.004877805 +0100
|
||
|
@@ -241,11 +241,33 @@
|
||
|
|
||
|
linux_entry "${OS}" "${version}" advanced \
|
||
|
"${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
||
|
+
|
||
|
+ linux_entry "${OS} (no modeset video driver)" "${version}" advanced \
|
||
|
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} nomodeset"
|
||
|
+
|
||
|
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' | grep -vx $linux | tr '\n' ' '`
|
||
|
is_first_entry=false
|
||
|
done
|