If the nvram device is non-functional, e.g. because the nvram module isn't
loaded and it's file been removed from the filesystem, thus can't be
loaded, the installation will be attempted but the system will be left in
an unbootable state.

The boot process shows:

    Welcome to GRUB!

    error: ../../grub-core/kern/dl.c:380:symbol `grub_disk_get_size' not found.
    Entering rescue mode...
    grub rescue>

The patches in this series introduce a couple of points of no return
before updating the nvram, and make sure /dev/nvram is functional or
fail early.

Ismael Luceno (2):
  grub-install: Add missing points of no return for IEEE1275 on
    i386/powerpc
  grub-install: Ensure a functional /dev/nvram

 util/grub-install.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

-- 
2.37.1

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to