2024-03-19 16:57:31 +01:00
|
|
|
--- grub-2.12/util/grub.d/10_linux.in.orig 2023-12-23 20:04:08.760546100 +0100
|
|
|
|
+++ grub-2.12/util/grub.d/10_linux.in 2023-12-23 20:09:01.621915577 +0100
|
|
|
|
@@ -295,14 +295,33 @@
|
2024-01-05 23:28:52 +01:00
|
|
|
# TRANSLATORS: %s is replaced with an OS name
|
2024-01-05 23:28:52 +01:00
|
|
|
echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
|
2024-01-05 23:28:53 +01:00
|
|
|
is_top_level=false
|
2024-01-05 23:28:52 +01:00
|
|
|
+ else
|
|
|
|
+ linux_entry "${OS}" "${version}" default \
|
|
|
|
+ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
2024-01-05 23:28:52 +01:00
|
|
|
fi
|
2024-01-05 23:28:52 +01:00
|
|
|
|
2024-01-05 23:28:52 +01:00
|
|
|
- linux_entry "${OS}" "${version}" advanced \
|
|
|
|
- "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
|
|
+ linux_entry "${OS} (with debug messages)" "${version}" debug \
|
|
|
|
+ "${GRUB_CMDLINE_LINUX} debug"
|
2024-01-05 23:28:52 +01:00
|
|
|
+
|
|
|
|
if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
|
|
|
|
linux_entry "${OS}" "${version}" recovery \
|
2024-03-19 16:57:31 +01:00
|
|
|
"${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}"
|
2024-01-05 23:28:52 +01:00
|
|
|
fi
|
2024-03-19 16:57:31 +01:00
|
|
|
+
|
2024-01-05 23:28:52 +01:00
|
|
|
+ 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
|
2024-03-19 16:57:31 +01:00
|
|
|
+ gettext_printf "Found initrd image: %sn" "${dirname}/${initrd}" >&2
|
2024-01-05 23:28:52 +01:00
|
|
|
+ linux_entry "${OS} (failsafe)" "${version}" advanced \
|
|
|
|
+ "rddebug splash selinux=0 ${GRUB_CMDLINE_LINUX_DEFAULT}"
|
|
|
|
+ fi
|
|
|
|
done
|
2024-01-05 23:28:53 +01:00
|
|
|
|
2024-03-19 16:57:31 +01:00
|
|
|
# If at least one kernel was found, then we need to
|