All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: grub-devel@gnu.org
Subject: Avoiding best-effort
Date: Sat, 10 Jul 2010 09:11:06 +0200	[thread overview]
Message-ID: <20100710071106.GA3981@const> (raw)

Hello,

There's a concern with the way grub menu entries work: even if a command
fails, grub continues with others, like bash's "best-effort" way.  This
leads to difficult-to-diagnose results: say for instance

multiboot /boot/mykernel
module /boot/initrd
module /boot/inittask

and initrd is too big for the memory for instance.  The actual error
message that the user will be able to read is "rd0: no such device",
because grub will silently ignore the initrd load failure.

It'd be better to at least have a way to show the actual error.  I've
talked a bit with phcoder, the kind of solutions we've come with are

- "set -e" command, to disable best-effort
- shell-like "&&" to chain commands only if they succeed
- introduce a small delay when printing error messages, to keep best
  effort while still showing the actual grub error.

Thoughts?

Samuel


             reply	other threads:[~2010-07-10 15:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-10  7:11 Samuel Thibault [this message]
2010-07-20 13:50 ` Avoiding best-effort Vladimir 'φ-coder/phcoder' Serbinenko

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=20100710071106.GA3981@const \
    --to=samuel.thibault@ens-lyon.org \
    --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.