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>

Introduce a point of no return after embedding grub in the PReP
partition, and make sure /dev/nvram is functional or fail early.

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

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

Changes since v2:
* Removed point of no return for i386
* Check for update_nvram before opening /dev/nvarm
Changes since v1:
* Check /dev/nvram early
* Removed loading of the nvram module
* Added points of no return

-- 
2.37.3


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

Reply via email to