Pass dis_ucode_ldr to kernel for recovery mode
authorJulian Andres Klode <julian.klode@canonical.com>
Fri, 19 Jun 2020 10:57:19 +0000 (12:57 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 2 Nov 2025 11:08:11 +0000 (12:08 +0100)
In case of a botched microcode update, this allows people to
easily roll back.

It will of course break in the more unlikely event that you are
missing a microcode update in your firmware that is needed to boot
the system, but editing the entry to remove an option is easier than
having to figure out the option and add it.

LP: #1831789

Gbp-Pq: Name recovery-dis_ucode_ldr.patch

util/grub.d/10_linux.in

index de26bd96145a6653a41d02635d90a4482c090048..f48a74b8aab5abc20f28c5d77d77e08912c1d61d 100644 (file)
@@ -223,6 +223,10 @@ case "$machine" in
     *) GENKERNEL_ARCH="$machine" ;;
 esac
 
+case "$GENKERNEL_ARCH" in
+  x86*) GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY dis_ucode_ldr";;
+esac
+
 prepare_boot_cache=
 prepare_root_cache=
 boot_device_id=