LWN: Comments on "Grub2 updates for Red Hat systems are making some unbootable" https://lwn.net/Articles/827573/ This is a special feed containing comments posted to the individual LWN article titled "Grub2 updates for Red Hat systems are making some unbootable". en-us Thu, 02 Oct 2025 21:12:38 +0000 Thu, 02 Oct 2025 21:12:38 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/831528/ https://lwn.net/Articles/831528/ nix <div class="FormattedComment"> Plus you get the ability to use an EFI shell to do all sorts of repair work before the OS even gets started. (Sure, the stuff in an EFI shell is mostly useless *until you need it*, but then it is crucial). There is no such thing as a lilo shell!<br> </div> Mon, 14 Sep 2020 17:04:43 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/828241/ https://lwn.net/Articles/828241/ flussence <div class="FormattedComment"> There&#x27;s no reason to use Lilo on a UEFI system; you get exactly the same user interface by using an EFI-stub kernel (with a built-in command line to set rootfs) and the BIOS&#x27; boot menu, except there&#x27;s one less part to forget to update.<br> </div> Fri, 07 Aug 2020 09:50:34 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827946/ https://lwn.net/Articles/827946/ cesarb <div class="FormattedComment"> Now that this has been fixed (<a href="https://access.redhat.com/errata/RHBA-2020:3265">https://access.redhat.com/errata/RHBA-2020:3265</a> and <a href="https://access.redhat.com/errata/RHBA-2020:3262">https://access.redhat.com/errata/RHBA-2020:3262</a>), does anyone know what was the bug? I haven&#x27;t seen any official announcement or blog post explaining what went wrong.<br> <p> The only thing I have found so far is <a href="https://git.centos.org/rpms/shim-unsigned-x64/c/834e5a0c4795c08faf69982fa3b9d11d8b491098?branch=c8">https://git.centos.org/rpms/shim-unsigned-x64/c/834e5a0c4...</a> (&quot;[PATCH] hexdump.h: fix arithmetic error&quot;) which mentions fixing rhbz#1861977 (<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1861977">https://bugzilla.redhat.com/show_bug.cgi?id=1861977</a>).<br> </div> Mon, 03 Aug 2020 19:16:36 +0000 Also on Debian based systems https://lwn.net/Articles/827790/ https://lwn.net/Articles/827790/ kreijack <div class="FormattedComment"> <font class="QuotedText">&gt; Theoretically, GPT-partitioned disks have a fake MBR with one huge untouchable “partition” that covers all the space within the GPT</font><br> <font class="QuotedText">&gt; partitions. (This only gets you so far if your disk is bigger than MBR will support.) </font><br> <p> Correct. <br> <p> To complete the answer, I have to point out that below of the &quot;MBR&quot; label there are two kind if information:<br> - the partition table<br> - the boot loader<br> <p> Both are stored in the first sector. Grub-install change only the latter. So in any case grub-installer can&#x27;t change nor damage the GPT table. However installing a MBR boot loader, could start the bios in legacy mode (and not uefi one).<br> <br> </div> Sun, 02 Aug 2020 06:05:26 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827776/ https://lwn.net/Articles/827776/ xnox <div class="FormattedComment"> Does it provide TPM2 measurements and signature verification of boot artefacts?<br> </div> Sat, 01 Aug 2020 18:04:01 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827772/ https://lwn.net/Articles/827772/ xnox <div class="FormattedComment"> That is correct that everyone needs to push out installation &amp; recovery media signed with new keys before pushing out dbx update.<br> <p> Ubuntu is making 20.04 LTS, 18.04 LTS, 16.04 LTS point releases for that reason. Once they are out dbx update will be pushed out.<br> </div> Sat, 01 Aug 2020 15:08:12 +0000 Also on Debian based systems https://lwn.net/Articles/827754/ https://lwn.net/Articles/827754/ gfernandes <div class="FormattedComment"> I did that at first, the first time I installed to a UEFI laptop. And ended up using the UEFI boot menu to switch.<br> <p> I later realised that all OSs should _add_ to the same UEFI partition, that should already be there if you got an off the shelf laptop with WhineDoze preinstalled.<br> <p> So I now first increase the size of the UEFI partition, and then install Fedora on another disk with /boot/efi pointing to the same UEFI partition. And since then, dual boot works fine and can be driven from the grub menu.<br> </div> Sat, 01 Aug 2020 05:36:48 +0000 Also on Debian based systems https://lwn.net/Articles/827739/ https://lwn.net/Articles/827739/ anselm <blockquote><em>In fact both GPT and MBR partition can co-exist together (and say the same thing or different thing ! more often the latter).</em></blockquote> <p> Theoretically, GPT-partitioned disks have a fake MBR with one huge untouchable “partition” that covers all the space within the GPT partitions. (This only gets you so far if your disk is bigger than MBR will support.) </p> Fri, 31 Jul 2020 21:23:36 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827737/ https://lwn.net/Articles/827737/ amacater <div class="FormattedComment"> <a href="https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot/#linux_bugs">https://www.debian.org/security/2020-GRUB-UEFI-SecureBoot...</a> is a well written page by someone I trust - debian-cd lead, someone who understand UEFI inside out from his time at ARM and someone who has been instrumental in the last couple of weeks in getting this stuff sorted.<br> </div> Fri, 31 Jul 2020 21:06:56 +0000 Also on Debian based systems https://lwn.net/Articles/827734/ https://lwn.net/Articles/827734/ kreijack <div class="FormattedComment"> <font class="QuotedText">&gt; &gt; I have no idea where that /dev/sda in the wiki came from. It is never right for an EFI install, hopefully grub-install will ignore it, because if it doesn&#x27;t, well, the result won&#x27;t be pretty.</font><br> <p> <font class="QuotedText">&gt; What would it do? Treat the GPT partition table as MBR and corrupt it? While definitely not pretty, that should be recoverable as GPT has a backup table hopefully not located in the first few sectors.</font><br> <p> Apart the fact that boot device could not be /dev/sda, the GPT table would be not affected. In fact both GPT and MBR partition can co-exist together (and say the same thing or different thing ! more often the latter).<br> <p> I think that the real risk is that some bios doesn&#x27;t start in UEFI mode if a MBR partition table is available. My BIOS (which is quite old) didn&#x27;t show any UEFI related option until I removed all MBR partition table.<br> </div> Fri, 31 Jul 2020 20:58:35 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827726/ https://lwn.net/Articles/827726/ ajmacleod <div class="FormattedComment"> I generally stay as far as possible from UEFI and where I have a choice of bootloader I like syslinux. Grub seemed like (was) a great advance on LILO in many ways but Grub2 is a huge confusing mess.<br> <p> I wish I&#x27;d read this article before updating practically all my grub booting servers (CentOS 7 and Debian 10)! Here&#x27;s hoping there&#x27;s a fix that can be applied before any reboots are required...<br> </div> Fri, 31 Jul 2020 19:13:14 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827678/ https://lwn.net/Articles/827678/ jhhaller <div class="FormattedComment"> Does installation media need to up updated to include newly signed components? Once dbxtool for a distribution has been updated, and the UEFI revocation list rejects older grub2 or shims, one needs an installation media with the newer grub2/shims, or a re-installed system won&#x27;t boot without disabling secure boot, unless I&#x27;m missing something. Are there signs of installation media/ISO being reissued with these patches? It looks like RedHat OpenShift/CoreOS is only being distributed with new boot images, but haven&#x27;t seen evidence of updated installation media for the rest of RedHat so far. System rescue images are also likely to need updating. It looks like Debian 10.5 will be issued with these patches, so at least it&#x27;s installation and live media will be available on August 1.<br> <p> Also check your BIOS vendor, at least HP (not to be confused with HPE) has reported that a BIOS update is required for some of their models before installing the new revocation list.<br> </div> Fri, 31 Jul 2020 15:52:23 +0000 Also on Debian based systems https://lwn.net/Articles/827679/ https://lwn.net/Articles/827679/ nivedita76 <div class="FormattedComment"> Right, I was just explaining how you can tell it which ESP if there&#x27;s more than one. It could be doing that if you just supply the device name as well, just unsure if it does.<br> </div> Fri, 31 Jul 2020 15:38:25 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827662/ https://lwn.net/Articles/827662/ nescafe <div class="FormattedComment"> LILO has never supported UEFI, ELILO is abandonware and generally isn&#x27;t signed to be secure boot enabled (ditto for gummiboot/systemd-boot). If you want UEFI secure boot, shim + grub2 is the only game in down that works out of the box for the major distros.<br> </div> Fri, 31 Jul 2020 14:14:44 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827654/ https://lwn.net/Articles/827654/ anselm <p> How does LILO cope with things like encrypted disks? </p> Fri, 31 Jul 2020 12:38:53 +0000 Also on Debian based systems https://lwn.net/Articles/827651/ https://lwn.net/Articles/827651/ cortana <p>Someone should update the GRUB manual then! <blockquote><pre>23 Invoking grub-install ************************ The program 'grub-install' generates a GRUB core image using 'grub-mkimage' and installs it on your system. You must specify the device name on which you want to install GRUB, like this: grub-install INSTALL_DEVICE The device name INSTALL_DEVICE is an OS device name or a GRUB device name. </pre></blockquote> Fri, 31 Jul 2020 12:29:28 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827649/ https://lwn.net/Articles/827649/ purslow <div class="FormattedComment"> Why not use Lilo instead ? It&#x27;s simple, reliable &amp; adequate for most installations.<br> I&#x27;ve never used anything else in 20 years of Linux, including 17 years of Gentoo.<br> <p> </div> Fri, 31 Jul 2020 10:47:55 +0000 Also on Debian based systems https://lwn.net/Articles/827646/ https://lwn.net/Articles/827646/ Wol <div class="FormattedComment"> Well, I don&#x27;t understand UEFI and all that stuff, but ...<br> <p> When I tried to install SUSE on this laptop, it quite happily installed - UEFI - pointing to the UEFI partition it created on sdb. Of course, the laptop boots Windows off sda, so SUSE-install (presumably grub) put it in the wrong place and the laptop doesn&#x27;t even realise SUSE is there :-(<br> <p> Cheers,<br> Wol<br> </div> Fri, 31 Jul 2020 08:55:43 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827637/ https://lwn.net/Articles/827637/ madhatter <div class="FormattedComment"> Having spent the past 24 hours trying very hard to glue my mail server back together (from the pile of tiny shards left behind by the update) I can confirm this affects CentOS 7 as well.<br> </div> Fri, 31 Jul 2020 06:56:46 +0000 Also on Debian based systems https://lwn.net/Articles/827632/ https://lwn.net/Articles/827632/ dmoulding <div class="FormattedComment"> Oh, for sure. But if you tell it which disk you want to install it to, it can easily find the ESP on that disk (by looking for the one with the ESP type UUID) and mount it itself. Then you don&#x27;t need to bother mounting it in advance, nor telling it where you&#x27;ve mounted it.<br> <p> I suppose it&#x27;s still got to know which file system has the contents of /boot so that it knows where to put its modules, and the other things it wants to put in /boot/grub. That&#x27;s a little harder since there isn&#x27;t a designated type UUID for the partition containing /boot (and it could be on an LVM volume or something else that&#x27;s not a GPT partition). So you might have to in some cases give it the --boot-directory option, as well (or mount the desired file system at /boot in advance).<br> <p> Nevertheless, I still don&#x27;t see how specifying a disk (as long as it&#x27;s not wrong), could be more harmful than not specifying a disk.<br> </div> Fri, 31 Jul 2020 03:16:54 +0000 Also on Debian based systems https://lwn.net/Articles/827631/ https://lwn.net/Articles/827631/ nivedita76 <div class="FormattedComment"> grub-install takes an --efi-directory argument to specify where the ESP has been mounted.<br> </div> Fri, 31 Jul 2020 02:20:44 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827629/ https://lwn.net/Articles/827629/ geuder <div class="FormattedComment"> I updated Ubuntu 16.04 (no secureboot) and 20.04 (secureboot) yesterday. No problems. <br> </div> Fri, 31 Jul 2020 01:53:06 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827624/ https://lwn.net/Articles/827624/ cesarb <div class="FormattedComment"> This is the official page for RedHat, with the full troubleshooting and recovery steps: <a href="https://access.redhat.com/solutions/5272311">https://access.redhat.com/solutions/5272311</a> (found in the links in the bugzilla page).<br> <p> Excerpt:<br> <p> &quot;Red Hat is aware of this bug and is working on a fix.<br> <p> DO NOT apply the affected Errata RHSA-2020:3217 for RHEL 7.<br> DO NOT apply the affected Errata RHSA-2020:3216 for RHEL 8.<br> <p> For Red Hat Satellite exclude this Errata from your Content Views&quot;<br> </div> Thu, 30 Jul 2020 23:38:01 +0000 Also on Debian based systems https://lwn.net/Articles/827622/ https://lwn.net/Articles/827622/ dmoulding <div class="FormattedComment"> This is giving me a mental segfault.<br> <p> There should be nothing wrong with doing &quot;grub-install /dev/sda&quot;, assuming /dev/sda is the disk that contains the ESP. And, in fact, if you&#x27;re running grub-install from a rescue system (which is UEFI) against another UEFI system&#x27;s disk (such that the system currently has *two* disks attached to it, each one containing an ESP), then specifying the disk should be *mandatory* because otherwise grub-install has to choose which of the two it should install to, and it&#x27;s almost certainly not going to guess that correctly every time. I would think the same would apply if you&#x27;ve got a rescue USB stick plugged into the system, which also contains an ESP.<br> <p> <p> <p> </div> Thu, 30 Jul 2020 23:19:35 +0000 Also on Debian based systems https://lwn.net/Articles/827620/ https://lwn.net/Articles/827620/ leromarinvit <div class="FormattedComment"> <font class="QuotedText">&gt; The correct command on Debian/Ubuntu, for EFI systems, is just &quot;grub-install&quot;, and let it auto-detect what it should do.</font><br> <p> Good to know, thanks.<br> <p> <font class="QuotedText">&gt; I have no idea where that /dev/sda in the wiki came from. It is never right for an EFI install, hopefully grub-install will ignore it, because if it doesn&#x27;t, well, the result won&#x27;t be pretty.</font><br> <p> What would it do? Treat the GPT partition table as MBR and corrupt it? While definitely not pretty, that should be recoverable as GPT has a backup table hopefully not located in the first few sectors.<br> <p> <font class="QuotedText">&gt; Heck, you don&#x27;t tell anyone to grub-install /dev/sda *even* for grub-pc (the &quot;PC BIOS&quot; edition), you say something like /dev/&lt;boot device&gt;...</font><br> <p> That&#x27;s definitely a useful clarification. While it&#x27;s probably obvious to the average LWN reader that a bootloader needs to be installed on whatever drive the system wants to boot from, people blindly following instructions might run into trouble here.<br> </div> Thu, 30 Jul 2020 22:56:52 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827615/ https://lwn.net/Articles/827615/ hmh <div class="FormattedComment"> The Ubuntu issue seems to be an already broken setup that is not properly detected, and thus grub-install fails. You end up with the old grub in EFI, and the new grub modules in /boot. If the two don&#x27;t like each other, the system fails to boot.<br> <p> Debian had a regression related to dual-booting Microsoft Windows. It has already been fixed, the regression-fixing packages are ready, and the Debian security team tells me the regression-fixing update is already going through the EFI-signature-and-final-upload pipeline (no idea how long that takes, though).<br> <p> Hopefully all distros will converge on the regression-fixes very fast...<br> <p> I am not rebooting my EFI systems for a few days if I can help it, though :-P<br> </div> Thu, 30 Jul 2020 21:54:05 +0000 Also on Debian based systems https://lwn.net/Articles/827616/ https://lwn.net/Articles/827616/ zlynx <div class="FormattedComment"> Well that&#x27;s good.<br> <p> As I remember things it did not always do that check for UEFI. Or perhaps it was someone booting an OS that didn&#x27;t understand UEFI and it did it. <br> <p> That kind of thing is what leads people to get upset with Windows because it will repeatedly repair the corrupted boot records. Which is not Windows&#x27; fault when it is the Linux users doing it wrong.<br> </div> Thu, 30 Jul 2020 21:53:51 +0000 Also on Debian based systems https://lwn.net/Articles/827614/ https://lwn.net/Articles/827614/ hmh <div class="FormattedComment"> Fixed the Debian wiki page.<br> </div> Thu, 30 Jul 2020 21:46:38 +0000 Also on Debian based systems https://lwn.net/Articles/827613/ https://lwn.net/Articles/827613/ hmh <div class="FormattedComment"> The correct command on Debian/Ubuntu, for EFI systems, is just &quot;grub-install&quot;, and let it auto-detect what it should do. Unless you unmounted /boot/efi and removed its definition in /etc/fstab, in which case you&#x27;re on your own. Do yourself a favor and ensure /boot and boot/efi are mounted read-write first. Feel free to change them back to a much safer read-only afterwards, though.<br> <p> I have no idea where that /dev/sda in the wiki came from. It is never right for an EFI install, hopefully grub-install will ignore it, because if it doesn&#x27;t, well, the result won&#x27;t be pretty.<br> <p> Heck, you don&#x27;t tell anyone to grub-install /dev/sda *even* for grub-pc (the &quot;PC BIOS&quot; edition), you say something like /dev/&lt;boot device&gt;...<br> </div> Thu, 30 Jul 2020 21:43:43 +0000 Also on Debian based systems https://lwn.net/Articles/827612/ https://lwn.net/Articles/827612/ cjwatson <div class="FormattedComment"> No it won&#x27;t - on UEFI, grub-install (for better or worse, but in this case better) just ignores any device name you give it and installs to the EFI System Partition anyway.<br> </div> Thu, 30 Jul 2020 21:28:49 +0000 Also on Debian based systems https://lwn.net/Articles/827604/ https://lwn.net/Articles/827604/ leromarinvit Interesting. Both the <a href="https://wiki.debian.org/GrubEFIReinstall">Debian wiki</a> and the <a href="https://wiki.archlinux.org/index.php/GRUB">Arch wiki</a> suggest using exactly this command. What does it break, and what should be used instead to (re-)install GRUB on UEFI systems? Thu, 30 Jul 2020 20:02:45 +0000 Also on Debian based systems https://lwn.net/Articles/827578/ https://lwn.net/Articles/827578/ zlynx <div class="FormattedComment"> For anyone reading that, never do that grub install command on a UEFI boot system. It will ruin it forever in hard to fix ways.<br> </div> Thu, 30 Jul 2020 17:34:57 +0000 Also on Debian based systems https://lwn.net/Articles/827577/ https://lwn.net/Articles/827577/ Smon <div class="FormattedComment"> This also happened on debian 10 (buster). Only my bios based systems had this problem, efi works fine. (I also read online, that these are the observations from other people)<br> For me, chrooting into the broken system (or doing it while the system is still running), `grub-install /dev/sda` solved it for me.<br> </div> Thu, 30 Jul 2020 17:28:31 +0000 Grub2 updates for Red Hat systems are making some unbootable https://lwn.net/Articles/827574/ https://lwn.net/Articles/827574/ cesarb <div class="FormattedComment"> According to comments on the HN post (<a href="https://news.ycombinator.com/item?id=23999212">https://news.ycombinator.com/item?id=23999212</a>), this is also affecting at least Ubuntu and Debian: <a href="https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1889509">https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1889509</a><br> </div> Thu, 30 Jul 2020 16:55:52 +0000