All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ismael Luceno <iluceno@suse.de>
To: grub-devel@gnu.org
Cc: Ismael Luceno <iluceno@suse.de>
Subject: [PATCH v2 0/2] Fix installation issues on ppc64le
Date: Mon, 29 Aug 2022 16:36:23 +0200	[thread overview]
Message-ID: <20220829143625.23769-1-iluceno@suse.de> (raw)

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


             reply	other threads:[~2022-08-29 14:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-29 14:36 Ismael Luceno [this message]
2022-08-29 14:36 ` [PATCH v2 1/2] grub-install: Add missing points of no return for IEEE1275 on i386/powerpc Ismael Luceno
2022-09-05  9:56   ` Michael Chang
2022-08-29 14:36 ` [PATCH v2 2/2] grub-install: Ensure a functional /dev/nvram Ismael Luceno
2022-09-05 10:04   ` Michael Chang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220829143625.23769-1-iluceno@suse.de \
    --to=iluceno@suse.de \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.